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 37
37
import com .ibm .wala .ipa .slicer .SDG ;
38
38
import com .ibm .wala .ipa .slicer .Slicer ;
39
39
import com .ibm .wala .ipa .slicer .Statement ;
40
+ import com .ibm .wala .ssa .IR ;
40
41
import com .ibm .wala .types .ClassLoaderReference ;
41
42
import com .ibm .wala .util .collections .HashMapFactory ;
42
43
import com .ibm .wala .util .graph .Graph ;
@@ -233,7 +234,10 @@ public static String construct(
233
234
for (IMethod method : cls .getAllMethods ()) {
234
235
Callable callable = getCallableFromSymbolTable (method ).getRight ();
235
236
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
+ }
237
241
}
238
242
}
239
243
}
You can’t perform that action at this time.
0 commit comments