Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-685

NPE during ClassCastException in CompareToValidator

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: