xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject svn commit: r331991 - /xmlgraphics/fop/trunk/src/java/org/apache/fop/Version.java
Date Wed, 09 Nov 2005 08:09:28 GMT
Author: jeremias
Date: Wed Nov  9 00:09:24 2005
New Revision: 331991

URL: http://svn.apache.org/viewcvs?rev=331991&view=rev
Log:
Fix for bug #37417:
Work around situations with incomplete class loaders that don't report package information.
Submitted by: Timothy Gates <tgates.at.xplantechnology.com>

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/Version.java

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/Version.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/Version.java?rev=331991&r1=331990&r2=331991&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/Version.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/Version.java Wed Nov  9 00:09:24 2005
@@ -30,7 +30,11 @@
      * @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 



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org


Mime
View raw message