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

Jie Kang jkang at redhat.com
Fri Sep 19 17:51:45 UTC 2014



----- 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()

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.


Regards,


> 
> J
> 
> 

-- 

Jie Kang


More information about the distro-pkg-dev mailing list