From 3360e958106eb966533900643eeb86216249b951 Mon Sep 17 00:00:00 2001 From: jsurfer Date: Sat, 4 Sep 2004 05:37:32 +0000 Subject: [PATCH 1/1] fixed NPE --- .../phpdt/internal/ui/util/PHPFileUtil.java | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) 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