- Assert.isTrue(osgiBundle.getVersion().equals(
- bundle.getHeaders().get(Constants.BUNDLE_VERSION)),
- "version consistent");
+ if (osgiBundle.getVersion() != null)
+ Assert.isTrue(osgiBundle.getVersion().equals(
+ bundle.getHeaders().get(Constants.BUNDLE_VERSION)),
+ "version consistent");