From 626d46ae95ba4332a40ca2c032a32b25ca73ce9d Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Thu, 24 Jul 2014 14:37:09 +0000 Subject: [PATCH] Don't fetch the name, convert to a ptg, then convert back again, instead simply return the name directly git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1613153 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/ss/formula/WorkbookEvaluator.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/java/org/apache/poi/ss/formula/WorkbookEvaluator.java b/src/java/org/apache/poi/ss/formula/WorkbookEvaluator.java index 4cbcee40cf..92318d87d9 100644 --- a/src/java/org/apache/poi/ss/formula/WorkbookEvaluator.java +++ b/src/java/org/apache/poi/ss/formula/WorkbookEvaluator.java @@ -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() {