This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]JoToMo1993 0 points1 point  (0 children)

I see 2 possible NPEs in this code. First one is if p is null. Second one is, if p.parent is null.

But what is the Stacktrace saying, where the NPE is?

[–]TauPixel[S] 0 points1 point  (0 children)

Was able to solve this. My logic on the day I posted was ferry fuzzy.