diff options
Diffstat (limited to 'systemtap/org.eclipse.linuxtools.callgraph/src/org/eclipse/linuxtools/internal/callgraph/StapData.java')
-rw-r--r-- | systemtap/org.eclipse.linuxtools.callgraph/src/org/eclipse/linuxtools/internal/callgraph/StapData.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/systemtap/org.eclipse.linuxtools.callgraph/src/org/eclipse/linuxtools/internal/callgraph/StapData.java b/systemtap/org.eclipse.linuxtools.callgraph/src/org/eclipse/linuxtools/internal/callgraph/StapData.java index a59a76db18..2959f4dcf1 100644 --- a/systemtap/org.eclipse.linuxtools.callgraph/src/org/eclipse/linuxtools/internal/callgraph/StapData.java +++ b/systemtap/org.eclipse.linuxtools.callgraph/src/org/eclipse/linuxtools/internal/callgraph/StapData.java @@ -67,11 +67,9 @@ public class StapData { //Add this data to the caller's list of IDs - if (this.parent != -1) { - if (graphModel.getNodeData(this.parent) != null) { - graphModel.getNodeData(this.parent).addCallee(this.id); - this.levelOfRecursion = graphModel.getNodeData(this.parent).levelOfRecursion + 1; - } + if (this.parent != -1 && graphModel.getNodeData(this.parent) != null) { + graphModel.getNodeData(this.parent).addCallee(this.id); + this.levelOfRecursion = graphModel.getNodeData(this.parent).levelOfRecursion + 1; } //---------------Recursion management |