Project

General

Profile

« Previous | Next » 

Revision 3197

Added by Jing Tao about 17 years ago

Check if the word is "infinity" before casting a string to double ojbect.

View differences:

DBSAXNode.java
148 148
        logMetacat.info("INSERTING DOCNAME: " + nodename);
149 149
      } else {
150 150
          if(data != null && !data.trim().equals("")
151
             && !data.trim().equals("NaN")){
151
             && !data.trim().equals("NaN") && !data.trim().equalsIgnoreCase("Infinity")){
152 152
              try{
153 153
                  double numberData = Double.parseDouble(data);
154 154
                  pstmt = connection.prepareStatement(

Also available in: Unified diff