litesoft
Diff Revisions 315 vs 317 for /trunk/Java/ScarPlus/src/com/esotericsoftware/utils/FileUtil.java
@@ -257,7 +257,8 @@ | |||
257 | 257 | */ | |
258 | 258 | public static boolean delete( String fileName ) | |
259 | 259 | { | |
260 | - | return delete( new File( assertNotEmpty( "fileName", fileName ) ) ); | |
260 | + | fileName = noEmpty( fileName ); | |
261 | + | return (fileName != null) && delete( new File( fileName ) ); | |
261 | 262 | } | |
262 | 263 | ||
263 | 264 | public static Closeable dispose( Closeable pCloseable ) |