diff options
author | Omair Majid <[email protected]> | 2011-02-11 20:13:11 -0500 |
---|---|---|
committer | Omair Majid <[email protected]> | 2011-02-11 20:13:11 -0500 |
commit | 726bcc4f8a89603b912328c94c56ce8677186a9c (patch) | |
tree | 4a11952088ed9be878dc14603389a3ef83d6a925 | |
parent | aecf3c932817b0fa4bd55a9fa2fc35fbb4a86bcd (diff) |
Fix NullPointerException in plugin caused by a non-overridden method
2011-02-11 Omair Majid <[email protected]>
* netx/net/sourceforge/jnlp/PluginBridge.java
(getResourcesDescs): New method implemented to override behaviour in
JNLPFile class.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | netx/net/sourceforge/jnlp/PluginBridge.java | 8 |
2 files changed, 14 insertions, 0 deletions
@@ -1,5 +1,11 @@ 2011-02-11 Omair Majid <[email protected]> + * netx/net/sourceforge/jnlp/PluginBridge.java + (getResourcesDescs): New method implemented to override behaviour in + JNLPFile class. + +2011-02-11 Omair Majid <[email protected]> + * netx/net/sourceforge/jnlp/JNLPFile.java (getResourceDescs): Renamed to... (getResourcesDescs): New method. diff --git a/netx/net/sourceforge/jnlp/PluginBridge.java b/netx/net/sourceforge/jnlp/PluginBridge.java index a710a62..2cb5146 100644 --- a/netx/net/sourceforge/jnlp/PluginBridge.java +++ b/netx/net/sourceforge/jnlp/PluginBridge.java @@ -244,6 +244,14 @@ public class PluginBridge extends JNLPFile { }; } + /** + * Returns the resources section of the JNLP file for the + * specified locale, os, and arch. + */ + public ResourcesDesc[] getResourcesDescs(final Locale locale, final String os, final String arch) { + return new ResourcesDesc[] { getResources(locale, os, arch) }; + } + public boolean isApplet() { return true; } |