hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/CompiledVFrame.java
changeset 10517 f92c9ff3a15f
parent 5547 f4b087cbb361
equal deleted inserted replaced
10516:2797e487c09f 10517:f92c9ff3a15f
    91     }
    91     }
    92     return getScope().getMethod();
    92     return getScope().getMethod();
    93   }
    93   }
    94 
    94 
    95   public StackValueCollection getLocals() {
    95   public StackValueCollection getLocals() {
       
    96     if (getScope() == null)
       
    97       return new StackValueCollection();
    96     List scvList = getScope().getLocals();
    98     List scvList = getScope().getLocals();
    97     if (scvList == null)
    99     if (scvList == null)
    98       return new StackValueCollection();
   100       return new StackValueCollection();
    99 
   101 
   100     // scvList is the list of ScopeValues describing the JVM stack state.
   102     // scvList is the list of ScopeValues describing the JVM stack state.
   106 
   108 
   107     return result;
   109     return result;
   108   }
   110   }
   109 
   111 
   110   public StackValueCollection getExpressions() {
   112   public StackValueCollection getExpressions() {
       
   113     if (getScope() == null)
       
   114       return new StackValueCollection();
   111     List scvList = getScope().getExpressions();
   115     List scvList = getScope().getExpressions();
   112     if (scvList == null)
   116     if (scvList == null)
   113       return new StackValueCollection();
   117       return new StackValueCollection();
   114 
   118 
   115     // scvList is the list of ScopeValues describing the JVM stack state.
   119     // scvList is the list of ScopeValues describing the JVM stack state.