View | Details | Raw Unified | Return to bug 32368
Collapse All | Expand All

(-)ValueComparator.java.orig (-3 / +3 lines)
Lines 47-55 Link Here
47
    cell1 = ((Cell []) values1) [index];
47
    cell1 = ((Cell []) values1) [index];
48
    cell2 = ((Cell []) values2) [index];
48
    cell2 = ((Cell []) values2) [index];
49
    
49
    
50
    if      (cell1 == null)
50
    if      (cell1 == null || cell1.getValue () == null)
51
      result = -1;
51
      result = -1;
52
    else if (cell2 == null)
52
    else if (cell2 == null || cell2.getValue () == null)
53
      result = 1;
53
      result = 1;
54
    else if ((cell1.getValue () instanceof Comparable) && (cell2.getValue () instanceof Comparable))
54
    else if ((cell1.getValue () instanceof Comparable) && (cell2.getValue () instanceof Comparable))
55
      result = ((Comparable) cell1.getValue ()).compareTo (cell2.getValue ());
55
      result = ((Comparable) cell1.getValue ()).compareTo (cell2.getValue ());
Lines 60-63 Link Here
60
    
60
    
61
    return (result);
61
    return (result);
62
  }
62
  }
63
}
63
}

Return to bug 32368