supaham
07/16/2017, 6:39 PMWeakReference<Entity?> more proper than WeakReference<Entity>.
If I had to guess, I'd say it will always NPE after GCdiesieben07
07/16/2017, 6:45 PMget for WeakReference<T> returns T?, so WeakReference<Entity> would be correct in your case, get would then return Entity?.supaham
07/16/2017, 6:46 PMdiesieben07
07/16/2017, 6:46 PMkevinmost
07/16/2017, 6:48 PMget() on WeakReference doesn't have a @Nullable annotation but still returns T?. Maybe it's hardcoded into the compiler or something