[MC-11788] Spawner that spawns zombie villagers that are being cured causes NPE Created: 14/Mar/13  Updated: 04/May/17  Resolved: 28/Nov/13

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.5, Snapshot 13w11a
Fix Version/s: None

Type: Bug
Reporter: DiEvAl Assignee: Unassigned
Resolution: Invalid Votes: 0
Labels: None

Attachments: Text File crash-2013-03-14_18.25.51-client.txt     File curingzombievillagerspawner.schematic    
CHK:
Confirmation Status: Confirmed
Game Mode: Creative

 Description   

I created a spawner that spawns zombie villagers that are being cured. When I open the world in minecraft, it crashes with an NPE.
After investigating it in MCP, I found that it's caused by a zombie villager model in the spawner. It uses a dummy entity, with world (a.k.a. level) being set to null. But when a zombie starts curing, it accesses the world. A simple if (world != null) should fix it.



 Comments   
Comment by Tails [ 28/Nov/13 ]

No answer, assuming no longer an issue.

Comment by Tails [ 10/May/13 ]

Is this still a concern in the current Minecraft version? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Comment by Anon Ymus [ 14/Mar/13 ]

Confirmed in 13w11a.

Comment by DiEvAl [ 14/Mar/13 ]

Maybe related to MC-10587?

Comment by Anon Ymus [ 14/Mar/13 ]

Note:

java.lang.NullPointerException
	at sd.a(SourceFile:319)
	at sd.a(SourceFile:249)
	at mp.f(SourceFile:1053)
	at zm.a(SourceFile:116)
	at zm.h(SourceFile:234)
	at bis.a(SourceFile:22)
	at bis.a(SourceFile:17)
	at bis.a(SourceFile:12)
	at bix.a(SourceFile:107)
	at bix.a(SourceFile:99)
	at bfs.a(SourceFile:314)
	at bfk.a(SourceFile:894)
	at bfk.b(SourceFile:743)
	at net.minecraft.client.Minecraft.K(SourceFile:595)
	at net.minecraft.client.Minecraft.run(SourceFile:524)
	at java.lang.Thread.run(Unknown Source)
Generated at Sun Jan 12 12:28:47 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.