From: jsurfer Date: Sat, 4 Sep 2004 05:37:32 +0000 (+0000) Subject: fixed NPE X-Git-Url: http://secure.phpeclipse.com?hp=0f94e5e3733547cd2632c734df7417e935ba0d8d fixed NPE --- diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/PHPFileUtil.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/PHPFileUtil.java index 177438d..fc5d895 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/PHPFileUtil.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/util/PHPFileUtil.java @@ -52,10 +52,11 @@ public class PHPFileUtil { * implementation is not creating extra strings. */ public final static boolean isPHPFileName(String name) { - String extension = getFileExtension(name).toLowerCase(); + String extension = getFileExtension(name); if (extension==null) { return false; } + extension = extension.toLowerCase(); for (int i=0;i