Skip to content

Commit d212214

Browse files
committed
Fix NPE
1 parent e9b79a3 commit d212214

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/me/rothes/protocolstringreplacer/packetlisteners/server/chat/PlayerChatHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public static WrappedChatComponent getTeamNameWrapped(Object object) {
249249
try {
250250
Object o = teamNameField.get(object);
251251
if (o == null) {
252-
return null;
252+
return WrappedChatComponent.fromText("");
253253
}
254254
return WrappedChatComponent.fromHandle(o);
255255
} catch (IllegalAccessException e) {

0 commit comments

Comments
 (0)