MyFaces Tomahawk
  1. MyFaces Tomahawk
  2. TOMAHAWK-685

NPE during ClassCastException in CompareToValidator

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.4-SNAPSHOT, 1.1.5-SNAPSHOT
    • Fix Version/s: 1.1.5
    • Component/s: Validators
    • Labels:
      None

      Description

      332: protected String getClassCastExceptionMessage(String name, Class clazz, Object object)
      333:

      { 334: if (null == object) 335: return name + " must be type " + clazz + " but is null" + object.getClass(); 336: else return name + " must be type " + clazz + " but is type " + object.getClass(); 337: }

      if you look with attention to line 335 it's surelly a bad copy/paste from line 336 and object.getClass() will throw NPE.

        Activity

        Nuno Marques created issue -
        Mike Kienenberger made changes -
        Field Original Value New Value
        Fix Version/s 1.1.5-SNAPSHOT [ 12311959 ]
        Affects Version/s 1.1.4-SNAPSHOT [ 12311931 ]
        Priority Trivial [ 5 ] Minor [ 4 ]
        Summary A sure NPE in CompareToValidator NPE during ClassCastException in CompareToValidator
        Mike Kienenberger made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Mike Kienenberger made changes -
        Assignee Mike Kienenberger [ mkienenb ]
        Martin Marinschek made changes -
        Assignee Mike Kienenberger [ mkienenb ] Martin Marinschek [ mmarinschek ]
        Martin Marinschek made changes -
        Assignee Martin Marinschek [ mmarinschek ] Mike Kienenberger [ mkienenb ]
        Manfred Geiler made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Manfred Geiler made changes -
        Fix Version/s 1.1.5 [ 12312397 ]
        Fix Version/s 1.1.5-SNAPSHOT [ 12311959 ]

          People

          • Assignee:
            Mike Kienenberger
            Reporter:
            Nuno Marques
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development