You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by vg...@apache.org on 2004/09/02 14:54:08 UTC

svn commit: rev 37372 - cocoon/trunk/src/blocks/poi/java/org/apache/cocoon/components/elementprocessor/impl/poi/hssf/elements

Author: vgritsenko
Date: Thu Sep  2 05:54:07 2004
New Revision: 37372

Modified:
   cocoon/trunk/src/blocks/poi/java/org/apache/cocoon/components/elementprocessor/impl/poi/hssf/elements/EPStyle.java
Log:
fix potential NPE (as reported on mail list)


Modified: cocoon/trunk/src/blocks/poi/java/org/apache/cocoon/components/elementprocessor/impl/poi/hssf/elements/EPStyle.java
==============================================================================
--- cocoon/trunk/src/blocks/poi/java/org/apache/cocoon/components/elementprocessor/impl/poi/hssf/elements/EPStyle.java	(original)
+++ cocoon/trunk/src/blocks/poi/java/org/apache/cocoon/components/elementprocessor/impl/poi/hssf/elements/EPStyle.java	Thu Sep  2 05:54:07 2004
@@ -1,12 +1,12 @@
 /*
  * Copyright 1999-2004 The Apache Software Foundation.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -41,7 +41,7 @@
  *
  * @author Marc Johnson (marc_johnson27591@hotmail.com)
  * @author Andrew C. Oliver (acoliver2@users.sourceforge.net)
- * @version CVS $Id: EPStyle.java,v 1.7 2004/03/05 13:02:04 bdelacretaz Exp $
+ * @version CVS $Id$
  */
 public class EPStyle extends BaseElementProcessor {
     private static final String _general_format = "General";
@@ -176,7 +176,7 @@
                 format = _general_format;
             }
 
-            if (!format.equals(_general_format)) {
+            if (!_general_format.equals(format)) {
                 short valuenumber;
                 format = kludgeForGnumericMisformats(format);
                 format = kludgeForGnumericDateDivergence(format);