Literally the only thing required to fix this bug is a null check in AbstractClassTransformerImpl.transform(), skipping transformation if className is null.