Exception when no tclass transforming is performed

Description

According to https://docs.jboss.org/hibernate/jpa/2.1/api/javax/persistence/spi/ClassTransformer.html a classtransformer might return null if no transforming of the class is desired.

Currently this leads to the follwoing exception:
java.lang.NullPointerException: newBytes cannot be null.
at org.eclipse.osgi.internal.weaving.WovenClassImpl.setBytes(WovenClassImpl.java:82)
at org.ops4j.pax.jpa.impl.JpaWeavingHook.weave(JpaWeavingHook.java:69)
at org.eclipse.osgi.internal.weaving.WovenClassImpl.call(WovenClassImpl.java:160)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.notifyHookPrivileged(ServiceRegistry.java:1280)
at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.notifyHooksPrivileged(ServiceRegistry.java:1263)
at org.eclipse.osgi.internal.weaving.WovenClassImpl.callHooks(WovenClassImpl.java:242)
at org.eclipse.osgi.internal.weaving.WeavingHookConfigurator.processClass(WeavingHookConfigurator.java:56)
at org.eclipse.osgi.internal.loader.classpath.ClasspathManager.defineClass(ClasspathManager.java:616)

Environment

None

Assignee

Christoph Läubrich

Reporter

Christoph Läubrich

Labels

None

Fix versions

Priority

Major
Configure