Skip to content

Validator Error on empty class in explicit module without a requires on EB #109

@LexManos

Description

@LexManos

While poking a FG issue I had to make an empty class:

package com.example.examplemod;
public final class ExampleMod { }

which resulted in an validation error:

Caused by: java.lang.NullPointerException: Cannot invoke "javax.lang.model.element.TypeElement.asType()" because the return value of "javax.lang.model.util.Elements.getTypeElement(java.lang.CharSequence)" is null
        at net.minecraftforge.eventbus.validator.AbstractValidator.init(AbstractValidator.java:74)
        at net.minecraftforge.eventbus.validator.EventBusValidator.init(EventBusValidator.java:33)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions