You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by lk...@apache.org on 2019/08/24 16:55:50 UTC

[netbeans] branch master updated: [NETBEANS-3023] Added null check to prevent the NPE

This is an automated email from the ASF dual-hosted git repository.

lkishalmi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new 588a8e4  [NETBEANS-3023] Added null check to prevent the NPE
588a8e4 is described below

commit 588a8e4e57301e5b4fb4a907301f578ff1e80ea4
Author: Laszlo Kishalmi <la...@gmail.com>
AuthorDate: Sat Aug 24 05:13:57 2019 -0700

    [NETBEANS-3023] Added null check to prevent the NPE
---
 .../java/j2seplatform/platformdefinition/J2SEPlatformCustomizer.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/java.j2seplatform/src/org/netbeans/modules/java/j2seplatform/platformdefinition/J2SEPlatformCustomizer.java b/java/java.j2seplatform/src/org/netbeans/modules/java/j2seplatform/platformdefinition/J2SEPlatformCustomizer.java
index b51fd1a..33b4d7f 100644
--- a/java/java.j2seplatform/src/org/netbeans/modules/java/j2seplatform/platformdefinition/J2SEPlatformCustomizer.java
+++ b/java/java.j2seplatform/src/org/netbeans/modules/java/j2seplatform/platformdefinition/J2SEPlatformCustomizer.java
@@ -797,7 +797,7 @@ public class J2SEPlatformCustomizer extends JTabbedPane {
             if ("jar".equals(url.getProtocol())) {      //NOI18N
                 iconKind = IconKind.ARCHVIVE;
                 URL fileURL = FileUtil.getArchiveFile (url);
-                if (FileUtil.getArchiveRoot(fileURL).equals(url)) {
+                if ((fileURL != null) && FileUtil.getArchiveRoot(fileURL).equals(url)) {
                     // really the root
                     url = fileURL;
                 } else {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists