[hg] main-silver: #224238: Prevent from NPE when ThreadsListener...

  • From:
  • To:
  • Subject: [hg] main-silver: #224238: Prevent from NPE when ThreadsListener...
  • Date: Sun, 06 Jan 2013 04:34:09 -0800

changeset 168f22c0ef66 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/168f22c0ef66
description:
        #224238: Prevent from NPE when ThreadsListener is not initialized yet.

diffstat:

 
debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/debugging/DebuggingView.java
 |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (18 lines):

diff --git 
a/debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/debugging/DebuggingView.java
 
b/debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/debugging/DebuggingView.java
--- 
a/debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/debugging/DebuggingView.java
+++ 
b/debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/debugging/DebuggingView.java
@@ -347,12 +347,14 @@
                     this.session = null;
                 }
             }
+            if (threadsListener != null) {
             requestProcessor.post(new Runnable() {
                 @Override
                 public void run() {
                     threadsListener.changeDebugger(deb);
                 }
             });
+            }
         } else {
             synchronized (lock) {
                 if (previousDebugger != null) {

[hg] main-silver: #224238: Prevent from NPE when ThreadsListener...

mentlicher 01/06/2013

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 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close