JDK-6699090 : Avoid NPE if parse fails in isMimeTypeEqual, do a string comparison instead
  • Type: Bug
  • Status: Resolved
  • Resolution: Fixed
  • Component: core-libs
  • Sub-Component: javax.activation
  • Priority: P3
  • Affected Version: 1.1.1
  • OS: generic
  • CPU: generic
  • Submit Date: 2008-05-08
  • Updated Date: 2010-04-02
  • Resolved Date: 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.1Resolved 6u10Resolved
Description
If parsing a mime type in isMimeTypeEqual() failed, a null pointer exception will result.

Comments
EVALUATION Fix is, on parse exception, merely do a crude string compare on the mime types.
2008-05-08

EVALUATION Bug found and fixed by by Bill Shannon as part of changes in JAF 1.1.1
2008-05-08