]> source.dussan.org Git - poi.git/commitdiff
Don't fetch the name, convert to a ptg, then convert back again, instead simply retur...
authorNick Burch <nick@apache.org>
Thu, 24 Jul 2014 14:37:09 +0000 (14:37 +0000)
committerNick Burch <nick@apache.org>
Thu, 24 Jul 2014 14:37:09 +0000 (14:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1613153 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/ss/formula/WorkbookEvaluator.java

index 4cbcee40cff03c61263a02afc9bc749691d7640d..92318d87d9a749296b378ebef7e7d4e271cb0a1d 100644 (file)
@@ -151,13 +151,8 @@ public final class WorkbookEvaluator {
        }
 
        /* package */ EvaluationName getName(String name, int sheetIndex) {
-        NamePtg namePtg = _workbook.getName(name, sheetIndex).createPtg();
-
-               if(namePtg == null) {
-                       return null;
-               } else {
-                       return _workbook.getName(namePtg);
-               }
+           EvaluationName evalName = _workbook.getName(name, sheetIndex);
+           return evalName;
        }
 
        private static boolean isDebugLogEnabled() {