]> source.dussan.org Git - poi.git/commitdiff
Handle null returns of coerceValueToBoolean
authorAndreas Beeker <kiwiwings@apache.org>
Tue, 1 Nov 2016 10:52:20 +0000 (10:52 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Tue, 1 Nov 2016 10:52:20 +0000 (10:52 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1767474 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/ss/formula/functions/Fixed.java

index d9026dcc73695ca1d0669fe32e6f2ae5e0704a78..e18bb062ea16566f647d637b034819c777134eee 100644 (file)
@@ -92,7 +92,7 @@ public final class Fixed implements Function1Arg, Function2Arg, Function3Arg {
             // Format number conditionally using a thousands separator.
             NumberFormat nf = NumberFormat.getNumberInstance(Locale.US);
             DecimalFormat formatter = (DecimalFormat)nf;
-            formatter.setGroupingUsed(! skipThousandsSeparator);
+            formatter.setGroupingUsed(!(skipThousandsSeparator != null && skipThousandsSeparator));
             formatter.setMinimumFractionDigits(places >= 0 ? places : 0);
             formatter.setMaximumFractionDigits(places >= 0 ? places : 0);
             String numberString = formatter.format(number.doubleValue());