On Mon, Dec 15, 2014 at 12:35 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > > On Mon, 15 Dec 2014 12:05:52 -0200, George Christman < > gchrist...@cardaddy.com> wrote: > >> Howard, you were correct. the MIME type was null. CompressionAnalyzerImpl >> was failing on line 32 do to contentType being null. As you stated, this >> NPE is a failure and should probably be checked and thrown with a proper >> message. I ended up having to override the service in order to resolve the >> issue. >> https://github.com/apache/tapestry-5/blob/90766995f59048cb7f7d4cf042a21a >> 9d728583db/tapestry-core/src/main/java/org/apache/ >> tapestry5/internal/services/assets/CompressionAnalyzerImpl.java >> > > That's a bug and I'll fix it. JIRA please? :) >
While the root cause for the contentType being null is somewhere else, CompressionAnalyzerImpl should probably just return false on null contentType rather than throw an exception. Kalle > > -- > Thiago H. de Paula Figueiredo > Tapestry, Java and Hibernate consultant and developer > http://machina.com.br > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >