File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/main/java/com/ibm/northstar Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 3737import com .ibm .wala .ipa .slicer .SDG ;
3838import com .ibm .wala .ipa .slicer .Slicer ;
3939import com .ibm .wala .ipa .slicer .Statement ;
40+ import com .ibm .wala .ssa .IR ;
4041import com .ibm .wala .types .ClassLoaderReference ;
4142import com .ibm .wala .util .collections .HashMapFactory ;
4243import com .ibm .wala .util .graph .Graph ;
@@ -233,7 +234,10 @@ public static String construct(
233234 for (IMethod method : cls .getAllMethods ()) {
234235 Callable callable = getCallableFromSymbolTable (method ).getRight ();
235236 if (callable != null ) {
236- callable .setCyclomaticComplexity (getCyclomaticComplexity (cache .getIR (method )));
237+ IR ir = cache .getIR (method );
238+ if (ir != null ) {
239+ callable .setCyclomaticComplexity (getCyclomaticComplexity (ir ));
240+ }
237241 }
238242 }
239243 }
You can’t perform that action at this time.
0 commit comments