Changeset 5393


Ignore:
Timestamp:
Aug 19, 2010, 8:42:56 AM (12 years ago)
Author:
Nicklas Nordborg
Message:

References #1498: Investigate and fix issues found by FindBugs?

Incorrect if statment when checking if a directory exists.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/clients/web/net/sf/basedb/clients/web/extensions/ExtensionsFile.java

    r5392 r5393  
    591591          {
    592592            log.info("Extracting '" + name + "' to " + extractTo.getAbsolutePath());
    593             if (extractTo.getParentFile().mkdirs())
     593            File dir = extractTo.getParentFile();
     594            dir.mkdirs();
     595            if (!dir.exists())
    594596            {
    595597              throw new FileNotFoundException("Failed to create directory: " + extractTo.getParent());
Note: See TracChangeset for help on using the changeset viewer.