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 /netx/net/sourceforge/jnlp/PluginBridge.java | |
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.
Diffstat (limited to 'netx/net/sourceforge/jnlp/PluginBridge.java')
-rw-r--r-- | netx/net/sourceforge/jnlp/PluginBridge.java | 8 |
1 files changed, 8 insertions, 0 deletions
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; } |