[rfc][icedtea-web] exception flaw in usages of PluginDebug.debug(...)

Jiri Vanek jvanek at redhat.com
Tue Aug 7 08:37:41 PDT 2012

Hi! Today Jana during testing of js api of IcedTEa-Web have encountered exception which was caused 
by PluginDebug.Debug. Even when DEBUG was disabled, then it caused NPE or ArrayOutOfBounds exceptions

eg PluginDebug.debug(object.something()) when object was null, then icedtea-web have fail even when 
debug was off.

This patch is fixing it.

Not all occurrences of PluginDebug.debug() were "fixed",  but just those affected by issue.

I have also fortified debug() method itself a bit.

Tahanx for comments

-------------- next part --------------
A non-text attachment was scrubbed...
Name: fixedPluginDebug.diff
Type: text/x-patch
Size: 15377 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120807/ee99ec05/fixedPluginDebug.diff 

More information about the distro-pkg-dev mailing list