[hg] main-silver: #223099: Fixed NPE.

  • From:
  • To:
  • Subject: [hg] main-silver: #223099: Fixed NPE.
  • Date: Mon, 03 Dec 2012 18:37:22 -0800

changeset 4eb91cd85268 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/4eb91cd85268
description:
        #223099: Fixed NPE.

diffstat:

 
debugger.jpda.projects/src/org/netbeans/modules/debugger/jpda/projects/EditorContextImpl.java
 |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (20 lines):

diff --git 
a/debugger.jpda.projects/src/org/netbeans/modules/debugger/jpda/projects/EditorContextImpl.java
 
b/debugger.jpda.projects/src/org/netbeans/modules/debugger/jpda/projects/EditorContextImpl.java
--- 
a/debugger.jpda.projects/src/org/netbeans/modules/debugger/jpda/projects/EditorContextImpl.java
+++ 
b/debugger.jpda.projects/src/org/netbeans/modules/debugger/jpda/projects/EditorContextImpl.java
@@ -2456,6 +2456,7 @@
                             String fieldName = it.getName().toString();
                             Scope scope = 
ci.getTreeUtilities().scopeFor(offset);
                             TypeElement te = scope.getEnclosingClass();
+                            if (te != null) {
                             List<? extends Element> enclosedElms = 
te.getEnclosedElements();
                             for (Element elm : enclosedElms) {
                                 if (elm.getKind().equals(ElementKind.FIELD) 
&& elm.getSimpleName().contentEquals(fieldName)) {
@@ -2463,7 +2464,7 @@
                                     break;
                                 }
                             }
-
+                            }
                         } else if (tree.getKind() == Tree.Kind.MEMBER_SELECT 
&& selectedIdentifier != null) {
                             MemberSelectTree mst = (MemberSelectTree) tree;
                             String fieldName = 
mst.getIdentifier().toString();

[hg] main-silver: #223099: Fixed NPE.

mentlicher 12/04/2012

Project Features

About this Project

Debugger was started in November 2009, is owned by tpavek, and has 29 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close