Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2430

CompressionAnalyzer should provide a reasonable exception when the content type is null

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.4
    • Fix Version/s: 5.4
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      CompressionAnalyzer should probably return false on a null content type rather than throw an exception.

      Caused by: java.lang.NullPointerException at org.apache.tapestry5.internal.
      services.assets.CompressionAnalyzerImpl.isCompressable(CompressionAnalyzerImpl.java:32)
      at $CompressionAnalyzer_10e85f85a5.isCompressable(Unknown Source) at
      org.apache.tapestry5.internal.gzip.BufferedGZipOutputStream.openResponseOutputStream(BufferedGZipOutputStream.java:77)

      http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/CompressionAnalyzerImpl-exception-td5729486.html

        Attachments

          Activity

            People

            • Assignee:
              hlship Howard M. Lewis Ship
              Reporter:
              gchristman George Christman
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: