[hg] main-silver: prevent NPE

  • From: Tomas Stupka < >
  • To:
  • Subject: [hg] main-silver: prevent NPE
  • Date: Wed, 30 Jan 2013 10:27:52 -0800

changeset 2837a7f6ec5f in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/2837a7f6ec5f
description:
        prevent NPE

diffstat:

 bugtracking/src/org/netbeans/modules/bugtracking/util/BugtrackingUtil.java | 
 4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff --git 
a/bugtracking/src/org/netbeans/modules/bugtracking/util/BugtrackingUtil.java 
b/bugtracking/src/org/netbeans/modules/bugtracking/util/BugtrackingUtil.java
--- 
a/bugtracking/src/org/netbeans/modules/bugtracking/util/BugtrackingUtil.java
+++ 
b/bugtracking/src/org/netbeans/modules/bugtracking/util/BugtrackingUtil.java
@@ -418,7 +418,9 @@
         DelegatingConnector[] connectors = 
BugtrackingManager.getInstance().getConnectors();
         for (DelegatingConnector c : connectors) {
             // XXX hack
-            
if(c.getDelegate().getClass().getName().startsWith("org.netbeans.modules.jira"))
 {    // NOI18N
+            if(c.getDelegate() != null && 
+               
c.getDelegate().getClass().getName().startsWith("org.netbeans.modules.jira")) 
// NOI18N
+            {    
                 return true;
             }
         }

[hg] main-silver: prevent NPE

Tomas Stupka 01/30/2013

Project Features

About this Project

ConnectedDeveloper was started in November 2009, is owned by tpavek, and has 66 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