You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "bd2019us (JIRA)" <ji...@apache.org> on 2019/03/31 20:04:00 UTC

[jira] [Created] (NETBEANS-2327) File.mkdir() may fail and cause crash.

bd2019us created NETBEANS-2327:
----------------------------------

             Summary: File.mkdir() may fail and cause crash.
                 Key: NETBEANS-2327
                 URL: https://issues.apache.org/jira/browse/NETBEANS-2327
             Project: NetBeans
          Issue Type: Bug
            Reporter: bd2019us


Locations:

(1) java/performance/src/org/netbeans/modules/performance/utilities/CommonUtilities.java:282

(2) ide/subversion/src/org/netbeans/modules/subversion/ui/checkout/CheckoutAction.java:181

The File.mkdir() method may cause program crash if the parent directory does not exist. The ensure safety, the File.mkdirs() method should be used, which won't cause extra performance overhead. Besides, this change is easy to validate.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
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