[hg] main-silver: #225078: NPE is now not appearing when submitt...

  • From: Martin Kozeny < >
  • To:
  • Subject: [hg] main-silver: #225078: NPE is now not appearing when submitt...
  • Date: Thu, 21 Mar 2013 11:39:48 -0700

changeset 72c2bf20acf7 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/72c2bf20acf7
description:
        #225078: NPE is now not appearing when submitting module Project 
Properties window after selecting file with relative or absolute path which 
does not exist any more at submit time.

diffstat:

 
apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/customizer/SingleModuleProperties.java
 |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (17 lines):

diff --git 
a/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/customizer/SingleModuleProperties.java
 
b/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/customizer/SingleModuleProperties.java
--- 
a/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/customizer/SingleModuleProperties.java
+++ 
b/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/customizer/SingleModuleProperties.java
@@ -991,10 +991,13 @@
                 String binPath = item.getFilePath();
                 if (binPath != null) {
                     FileObject fo = 
FileUtil.toFileObject(PropertyUtils.resolveFile(getProjectDirectoryFile(), 
binPath));
+                    if(fo != null)
+                    {
                     String runtimePath = 
ApisupportAntUtils.CPEXT_RUNTIME_RELATIVE_PATH + fo.getNameExt();
                     newCpExt.put(runtimePath, binPath);
                 }
             }
+            }
 
             // delete removed JARs, remove any remaining exported packages 
and src&javadoc refs left
             Iterator<Item> it = getCPExtIterator();

[hg] main-silver: #225078: NPE is now not appearing when submitt...

Martin Kozeny 03/21/2013

Project Features

About this Project

APIsupport was started in November 2009, is owned by Antonin Nebuzelsky, and has 43 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