[rfc][icedtea-web] possible class cast exception in splashcontroler

Jie Kang jkang at redhat.com
Mon Sep 22 14:58:18 UTC 2014



----- Original Message -----
> On 09/19/2014 07:51 PM, Jie Kang wrote:
> >
> >
> > ----- Original Message -----
> >> Some applets, may not be using the original apllet-viewer-pane, but rather
> >> *detach*, and are in
> >> separate window.
> >>
> >> If such an applet fails, the error screen can not be drawn, because the
> >> applications frame is not
> >> SpalshController.
> >>
> >> As splash logic can live happily with null splashcontoloere (==not work,
> >> and
> >> silently exit) , the
> >> class cast exception is unnecessary.
> >>
> >> There is nothing to be done to save the application as it already died,
> >> but
> >> the error is imho really
> >> unnecessary.
> >
> > Hello,
> >
> >
> > Can you fix the type in:
> > getSplashControler()
> > to
> > getSplashController()
> 
> 
> Done.
> >
> > Could you also see if a test/reproducer can be added to make sure that a
> > null return value is okay? (Can be another changeset) I looked through the
> > code and it should be fine but a test to make sure would be great.
> >
> > Apart from that the patch looks fine.
> >
> 
> Added small test to check null values do not throw NPEs.
> 
> 
> Pushing to head. I would like to push it also to 1.5. ok?
> 

Hello,

Push to 1.5 should be good too :)


Regards,

> Ty for check!
> 
>   J.
> 
> 

-- 

Jie Kang


More information about the distro-pkg-dev mailing list