[hg] main-silver: Issue #240164 - NullPointerException at org.ne...

  • From: Tomas Stupka < >
  • To:
  • Subject: [hg] main-silver: Issue #240164 - NullPointerException at org.ne...
  • Date: Fri, 10 Jan 2014 04:50:47 +0000

changeset de71b8a11573 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/de71b8a11573
description:
        Issue #240164 - NullPointerException at 
org.netbeans.modules.jira.client.spi.JiraConnectorProvider.createWrapper

diffstat:

 jira/src/org/netbeans/modules/jira/client/spi/JiraConnectorProvider.java |  
3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (21 lines):

diff --git 
a/jira/src/org/netbeans/modules/jira/client/spi/JiraConnectorProvider.java 
b/jira/src/org/netbeans/modules/jira/client/spi/JiraConnectorProvider.java
--- a/jira/src/org/netbeans/modules/jira/client/spi/JiraConnectorProvider.java
+++ b/jira/src/org/netbeans/modules/jira/client/spi/JiraConnectorProvider.java
@@ -308,8 +308,8 @@
                     throw new 
NoSuchMethodException(wrapper.getDelegate().getClass().getName() + "." + 
method.getName() + " " + Arrays.toString(method.getParameterTypes()));
                 }
                 Object ret = wrapperMethod.invoke(wrapper.getDelegate(), 
args);
+                if(ret instanceof Object[]) {
                 Class<?> ct = method.getReturnType().getComponentType();
-                if(ret instanceof Object[]) {
                     Object[] objs = (Object[])ret;
                     Object ao = Array.newInstance(ct, objs.length);
                     for (int i = 0; i < objs.length; i++) {
@@ -317,6 +317,7 @@
                     }
                     return ao;
                 } else {
+                    Class<?> ct = method.getReturnType();
                     return convert(ct, ret);
                 }
             } catch (InvocationTargetException e) {

[hg] main-silver: Issue #240164 - NullPointerException at org.ne...

Tomas Stupka 01/10/2014

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