Work around situations with incomplete class loaders that don't report package information.
Submitted by: Timothy Gates <tgates.at.xplantechnology.com>
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@331991
13f79535-47bb-0310-9956-
ffa450edef68
* @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