aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/PluginParameters.java
diff options
context:
space:
mode:
authorSaad Mohammad <[email protected]>2012-12-10 17:35:50 -0500
committerSaad Mohammad <[email protected]>2012-12-10 17:35:50 -0500
commit95b362ef399456ed69dd53a05709783b92f9aa23 (patch)
tree01914dbfe868a2929c59f546a8a13ff1280352eb /netx/net/sourceforge/jnlp/PluginParameters.java
parentf0532d8a52008379da30f1449f252fec5f442928 (diff)
PR1189: Icedtea-plugin requires code attribute when using jnlp_href
Diffstat (limited to 'netx/net/sourceforge/jnlp/PluginParameters.java')
-rw-r--r--netx/net/sourceforge/jnlp/PluginParameters.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/netx/net/sourceforge/jnlp/PluginParameters.java b/netx/net/sourceforge/jnlp/PluginParameters.java
index 6f0152e..06b1b3c 100644
--- a/netx/net/sourceforge/jnlp/PluginParameters.java
+++ b/netx/net/sourceforge/jnlp/PluginParameters.java
@@ -54,7 +54,9 @@ public class PluginParameters {
this.parameters = createParameterTable(params);
if (this.parameters.get("code") == null
- && this.parameters.get("object") == null) {
+ && this.parameters.get("object") == null
+ //If code/object parameters are missing, we can still determine the main-class name from the jnlp file passed using jnlp_href
+ && this.parameters.get("jnlp_href") == null) {
throw new PluginParameterException(R("BNoCodeOrObjectApplet"));
}
}