Changeset 57eb17fee2b002de249763f3b2908f758fa65c29

Show
Ignore:
Timestamp:
11/07/09 19:17:40 (5 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1257621460 +0000
git-parent:

[2b223aba8b2de203fe480dd111bd6bd48b4792cc]

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

this can be null and subsequently explode into a million-trillion bits (Esper internals are fragile)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/java/com/omniti/reconnoiter/esper/DeriveView.java

    r2b223ab r57eb17f  
    8484            for ( EventBean pointb : newData ) { 
    8585                EventBean eventsPerStream[] = { pointb }; 
     86                Number NX = (Number) expressionX.evaluate(eventsPerStream, true, statementContext); 
     87                if(NX == null) continue; 
     88                Number NY = (Number) expressionY.evaluate(eventsPerStream, true, statementContext); 
     89                if(NY == null) continue; 
    8690                NoitDerivePoint point = new NoitDerivePoint(); 
    87                 point.X = ((Number) expressionX.evaluate(eventsPerStream, true, statementContext)).longValue(); 
     91                point.X = NX.longValue(); 
    8892                if(isDouble) 
    89                   point.Ydouble = ((Number) expressionY.evaluate(eventsPerStream, true, statementContext)).doubleValue(); 
     93                  point.Ydouble = NY.doubleValue(); 
    9094                else 
    91                   point.Ylong = ((Number) expressionY.evaluate(eventsPerStream, true, statementContext)).longValue(); 
     95                  point.Ylong = NY.longValue(); 
    9296 
    9397                if (lastpoint != null) {