From 95b362ef399456ed69dd53a05709783b92f9aa23 Mon Sep 17 00:00:00 2001 From: Saad Mohammad Date: Mon, 10 Dec 2012 17:35:50 -0500 Subject: PR1189: Icedtea-plugin requires code attribute when using jnlp_href --- netx/net/sourceforge/jnlp/PluginParameters.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'netx/net/sourceforge') 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")); } } -- cgit v1.2.3