[hg] main-silver: #221950: Prevent from NPE

  • From:
  • To:
  • Subject: [hg] main-silver: #221950: Prevent from NPE
  • Date: Wed, 14 Nov 2012 10:43:14 -0800

changeset e1d9727d0d1e in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/e1d9727d0d1e
description:
        #221950: Prevent from NPE

diffstat:

 
spi.debugger.ui/src/org/netbeans/modules/debugger/ui/DebuggerManagerListener.java
 |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff --git 
a/spi.debugger.ui/src/org/netbeans/modules/debugger/ui/DebuggerManagerListener.java
 
b/spi.debugger.ui/src/org/netbeans/modules/debugger/ui/DebuggerManagerListener.java
--- 
a/spi.debugger.ui/src/org/netbeans/modules/debugger/ui/DebuggerManagerListener.java
+++ 
b/spi.debugger.ui/src/org/netbeans/modules/debugger/ui/DebuggerManagerListener.java
@@ -407,6 +407,10 @@
                 }
                 List<ComponentInfo> openedWindows = new 
ArrayList<ComponentInfo>();
                 for (List<? extends ComponentInfo> lci : 
openedWindowsByProvider.values()) {
+                    if (lci == null) {
+                        // The components are not set up yet for this engine.
+                        continue;
+                    }
                     openedWindows.addAll(lci);
                 }
                 // Check whether the component is opened by some other 
engine...

[hg] main-silver: #221950: Prevent from NPE

mentlicher 11/14/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