Bug fixes and added a SQLQuery class that is incomplete

This commit is contained in:
Ziver Koc 2010-12-26 18:17:35 +00:00
parent f7f02123c2
commit d2bf44365c
4 changed files with 168 additions and 11 deletions

View file

@ -260,9 +260,9 @@ public class FileUtil {
* @return The extension
*/
public static String fileExtension(String file){
if(file.lastIndexOf(".")==-1)
if( file == null || file.lastIndexOf(".") == -1 )
return "";
return file.substring(file.lastIndexOf(".")+1,file.length());
return file.substring(file.lastIndexOf(".")+1, file.length());
}
}