diff options
Diffstat (limited to 'netx/net/sourceforge')
-rw-r--r-- | netx/net/sourceforge/jnlp/Parser.java | 5 | ||||
-rw-r--r-- | netx/net/sourceforge/jnlp/resources/Messages.properties | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/netx/net/sourceforge/jnlp/Parser.java b/netx/net/sourceforge/jnlp/Parser.java index 917cad2..a823562 100644 --- a/netx/net/sourceforge/jnlp/Parser.java +++ b/netx/net/sourceforge/jnlp/Parser.java @@ -504,6 +504,11 @@ class Parser { child = child.getNextSibling(); } + if (info.getTitle() == null || info.getTitle().trim().isEmpty()) + throw new ParseException(R("PNoTitleElement")); + if (info.getVendor() == null || info.getVendor().trim().isEmpty()) + throw new ParseException(R("PNoVendorElement")); + return info; } diff --git a/netx/net/sourceforge/jnlp/resources/Messages.properties b/netx/net/sourceforge/jnlp/resources/Messages.properties index f1187e5..a0801b6 100644 --- a/netx/net/sourceforge/jnlp/resources/Messages.properties +++ b/netx/net/sourceforge/jnlp/resources/Messages.properties @@ -105,6 +105,8 @@ PInnerJ2SE=j2se element cannot be specified within a j2se element. PTwoMains=Duplicate main JAR defined in a resources element (there can be only one)
PNativeHasMain=Cannot specify main attribute on native JARs.
PNoInfoElement=No information section defined
+PNoTitleElement=The title section has not been defined in the JNLP file.
+PNoVendorElement=The vendor section has not been defined in the JNLP file.
PTwoDescriptions=Duplicate description of kind {0}
PSharing=Element "sharing-allowed" is illegal in a standard JNLP file
PTwoSecurity=Only one security element allowed per JNLPFile.
|