[Schmitzm-commits] r839 - trunk/src/schmitzm/io
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Sun May 9 15:11:41 CEST 2010
Author: alfonx
Date: 2010-05-09 15:11:40 +0200 (Sun, 09 May 2010)
New Revision: 839
Modified:
trunk/src/schmitzm/io/IOUtil.java
Log:
canWriteOrCreate(File file) now return false is file == null
Modified: trunk/src/schmitzm/io/IOUtil.java
===================================================================
--- trunk/src/schmitzm/io/IOUtil.java 2010-05-08 19:58:07 UTC (rev 838)
+++ trunk/src/schmitzm/io/IOUtil.java 2010-05-09 13:11:40 UTC (rev 839)
@@ -762,6 +762,8 @@
* {@link File} to test. May exist or not exist.
*/
public static boolean canWriteOrCreate(File file) {
+ if (file == null)
+ return false;
if (file.exists())
return file.canWrite();
try {
More information about the Schmitzm-commits
mailing list