Changeset d855ea0243033b7550d661d296ceaf7b5bf94e75

Show
Ignore:
Timestamp:
11/10/09 16:38:40 (5 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1257871120 +0000
git-parent:

[18662830e336fc374d9ed64097d12773957a126d]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1257871120 +0000
Message:

correct handling of nulls

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/java/com/omniti/reconnoiter/event/NoitMetricNumeric.java

    r5640498 rd855ea0  
    3030      uuid = parts[3]; 
    3131      name = parts[4]; 
    32       try { 
    33         value = Double.valueOf(parts[6]); 
    34       } catch (NumberFormatException nfe) { 
    35         value = null; 
     32      value = null; 
     33      if (!parts[6].equals("[[null]]")) { 
     34          try { 
     35            value = Double.valueOf(parts[6]); 
     36          } catch (NumberFormatException nfe) { 
     37            value = null; 
     38          } 
    3639      } 
    37  
    3840   } 
    3941 
  • src/java/com/omniti/reconnoiter/event/NoitMetricText.java

    r5640498 rd855ea0  
    2121      uuid = parts[3]; 
    2222      name = parts[4]; 
    23       message = parts[6]
     23      message = parts[6].equals("[[null]]") ? null : parts[6]
    2424      time = timeToLong(parts[2]); 
    2525    }