We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98fbcc6 commit e219103Copy full SHA for e219103
src/main/java/com/comphenix/protocol/wrappers/Converters.java
@@ -168,6 +168,7 @@ public Object getGeneric(Optional<T> specific) {
168
169
@Override
170
public Optional<T> getSpecific(Object generic) {
171
+ if (generic == null) return Optional.empty();
172
Optional<Object> optional = (Optional<Object>) generic;
173
return optional.map(converter::getSpecific);
174
}
0 commit comments