Revision: 1835
Author: [email protected]
Date: Wed Feb  3 09:05:53 2010
Log: FindBugs fix for not dealing with unsuccessful dir. creation.
http://code.google.com/p/simal/source/detail?r=1835

Modified:
/trunk/uk.ac.osswatch.simal.core/src/main/java/uk/ac/osswatch/simal/rdf/io/RDFUtils.java

=======================================
--- /trunk/uk.ac.osswatch.simal.core/src/main/java/uk/ac/osswatch/simal/rdf/io/RDFUtils.java Tue Nov 24 15:50:31 2009 +++ /trunk/uk.ac.osswatch.simal.core/src/main/java/uk/ac/osswatch/simal/rdf/io/RDFUtils.java Wed Feb 3 09:05:53 2010
@@ -574,9 +574,13 @@
           + File.separator + "simal-uploads");
     } catch (SimalRepositoryException e) {
       throw new SimalRepositoryException(
-          "Unable to create the filesrote for annotated files");
-    }
-    fileStoreDir.mkdirs();
+      "Unable to create the filestore for annotated files");
+    }
+    if(!fileStoreDir.mkdirs()) {
+      throw new SimalRepositoryException(
+      "Unable to create the filestore for annotated files");
+    }
+
     String path = fileStoreDir.getAbsolutePath();
     if (!(filename.endsWith(".rdf") || filename.endsWith(".xml"))) {
       writefile = filename + ".rdf";

--
You received this message because you are subscribed to the Google Groups "Simal 
Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/simal-commits?hl=en.

Reply via email to