Fixes a null pointer exception for freeResource method in the case of FileNotFound exception in OPAL plug-in.
@@ -191,7 +191,10 @@ public class OPALPlugin extends Plugin {
@Override
public void freeResource() {
+ if(this.lastCallGraphGenerated != null){
this.lastCallGraphGenerated.clear();
- this.lastCallGraphGenerated = null;}
+ this.lastCallGraphGenerated = null;
+ }
+ }
}
}
