bug fix from Omer Tripp; tolerate getTargetForCall() returns null
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2394 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
parent
89f56b753c
commit
99dc52a59b
|
@ -1386,7 +1386,7 @@ public abstract class SSAPropagationCallGraphBuilder extends PropagationCallGrap
|
|||
IMethod targetMethod = getOptions().getMethodTargetSelector().getCalleeTarget(callGraph.getFakeRootNode(), site, null);
|
||||
if (targetMethod != null) {
|
||||
CGNode target = getTargetForCall(callGraph.getFakeRootNode(), site, (InstanceKey) null);
|
||||
if (callGraph.getPredNodeCount(target) == 0) {
|
||||
if (target != null && callGraph.getPredNodeCount(target) == 0) {
|
||||
SSAAbstractInvokeInstruction s = fakeWorldClinitMethod.addInvocation(new int[0], site);
|
||||
PointerKey uniqueCatch = getBuilder().getPointerKeyForExceptionalReturnValue(callGraph.getFakeRootNode());
|
||||
getBuilder().processResolvedCall(callGraph.getFakeWorldClinitNode(), s, target, null, uniqueCatch);
|
||||
|
|
Loading…
Reference in New Issue