aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/java/org/apache/fop/Version.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/Version.java b/src/java/org/apache/fop/Version.java
index 221244d60..31d463136 100644
--- a/src/java/org/apache/fop/Version.java
+++ b/src/java/org/apache/fop/Version.java
@@ -30,7 +30,11 @@ public class Version {
* @return the version string
*/
public static String getVersion() {
- String version = Version.class.getPackage().getImplementationVersion();
+ String version = null;
+ Package jarinfo = Version.class.getPackage();
+ if (jarinfo != null) {
+ version = jarinfo.getImplementationVersion();
+ }
if (version == null) {
//Fallback if FOP is used in a development environment
String headURL