Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-1690

NullPointerException when parsing skin files

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.1 RC1
    • Fix Version/s: 1.1 RC2
    • Component/s: {Unused} Core
    • Labels:
      None
    • Similar issues:

      Description

      On some systems (container specific) getMimeType return null for javascript files, causing a NPE in SkinAction#isJavascriptMimeType

      A simple solution, which solves only the NPE, but not the real problem, is to use "javascript".equals(mimetype) instead of mimetype.equals("javascript").

      A better solution would be to see why is null returned instead of the proper mimetype.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sdumitriu Sergiu Dumitriu
                Reporter:
                sdumitriu Sergiu Dumitriu
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: