aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmair Majid <[email protected]>2011-02-11 20:13:11 -0500
committerOmair Majid <[email protected]>2011-02-11 20:13:11 -0500
commit726bcc4f8a89603b912328c94c56ce8677186a9c (patch)
tree4a11952088ed9be878dc14603389a3ef83d6a925
parentaecf3c932817b0fa4bd55a9fa2fc35fbb4a86bcd (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--ChangeLog6
-rw-r--r--netx/net/sourceforge/jnlp/PluginBridge.java8
2 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d92e476..5028e12 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;
}