Skip to content

Commit 04ecb96

Browse files
committed
Fix NPE with using member instead of ctor argument in default agent
1 parent f148f05 commit 04ecb96

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/spongepowered/asm/launch/platform/MixinPlatformAgentDefault.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public class MixinPlatformAgentDefault extends MixinPlatformAgentAbstract {
4040

4141
@Override
4242
public AcceptResult accept(MixinPlatformManager manager, IContainerHandle handle) {
43-
this.mixinConfigs = this.handle.getAttribute(ManifestAttributes.MIXINCONFIGS);
44-
this.connectorClass = this.handle.getAttribute(ManifestAttributes.MIXINCONNECTOR);
43+
this.mixinConfigs = handle.getAttribute(ManifestAttributes.MIXINCONFIGS);
44+
this.connectorClass = handle.getAttribute(ManifestAttributes.MIXINCONNECTOR);
4545
return this.mixinConfigs == null && this.connectorClass == null ? AcceptResult.REJECTED : super.accept(manager, handle);
4646
}
4747

0 commit comments

Comments
 (0)