JDK-6699090 : Avoid NPE if parse fails in isMimeTypeEqual, do a string comparison instead
  • Type: Bug
  • Component: core-libs
  • Sub-Component: javax.activation
  • Affected Version: 1.1.1
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-05-08
  • Updated: 2010-04-02
  • Resolved: 2008-05-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
Other JDK 6
1.1.1 1.1.1Fixed 6u10Fixed
If parsing a mime type in isMimeTypeEqual() failed, a null pointer exception will result.

EVALUATION Fix is, on parse exception, merely do a crude string compare on the mime types.

EVALUATION Bug found and fixed by by Bill Shannon as part of changes in JAF 1.1.1