[SPIGOT-7399] NPE if object is null Created: 17/Jun/23 Updated: 25/Dec/24 Resolved: 17/Jun/23 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Mersphydena | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 1 |
Labels: | None | ||
Environment: |
|
Version: | 1.20 |
Guidelines Read: | Yes |
Description |
Caused by: java.lang.NullPointerException: Cannot invoke "Object.getClass()" because "object" is null |
Comments |
Comment by Mersphydena [ 17/Jun/23 ] |
{{ Preconditions.checkArgument(object == null, "%s cannot contain non-string %s", addFrom, object.getClass().getName());}}
|
Comment by md_5 [ 17/Jun/23 ] |
Can you please provide the full code / stack trace. I'm struggling to see the issue |