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

NullPointerException when parsing skin files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 1.1 RC2
    • 1.1 RC1
    • {Unused} Core
    • None

    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

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

              Dates

                Created:
                Updated:
                Resolved: