Converting zombie villager without ConversionPlayer set crashes server
The bug
Setting a ConversionTime for a zombie villager without setting ConversionPlayerLeast and ConversionPlayerMost crashes the server.
Description: Ticking entity java.lang.NullPointerException: Ticking entity at amr.b(SourceFile:2627) at ads.dr(SourceFile:186) at ads.B_(SourceFile:113) at amr.a(SourceFile:1514) at om.a(SourceFile:714) at amr.h(SourceFile:1499) at amr.k(SourceFile:1382) at om.k(SourceFile:547) at net.minecraft.server.MinecraftServer.D(SourceFile:634) at net.minecraft.server.MinecraftServer.C(SourceFile:562) at cgx.C(SourceFile:154) at net.minecraft.server.MinecraftServer.run(SourceFile:466) at java.lang.Thread.run(Thread.java:745)
How to reproduce
/summon zombie_villager ~ ~ ~ {ConversionTime:0}
Code analysis
Based on 1.12-pre3 decompiled using CFR
It looks like the UUID of the player who started the conversion is compared with the UUIDs of online players to then trigger the advancement trigger cured_zombie_villager. The problem is that it is not tested if the passed UUID is null which causes a NullPointerException when the method equals is called for it.
Linked Issues
Created Issue:
ConversionTime
Sorry but my English is not the best
{Profession:0,Silent:1,NoAI:true,Rotation:[90.0f,0.0f],Age:0,Tags:["B1","X"]}
This closes the game
1)
summon minecraft:zombie_villager ~ ~1.5 ~2)
{ConversionTime:40}
/entitydata @e[tag=B1]It worked in 1.11.2
Sorry but my English is not the best
{Profession:0,Silent:1,NoAI:true,Rotation:[90.0f,0.0f],Age:0,Tags:["B1","X"]}
This closes the game
1)
summon minecraft:zombie_villager ~ ~1.5 ~2)
{ConversionTime:40}
/entitydata @e[tag=B1]It worked in 1.11.2
Sorry but my English is not the best
This closes the game
- :
summon minecraft:zombie_villager ~ ~1.5 ~ {Profession:0,Silent:1,NoAI:true,Rotation:[90.0f,0.0f],Age:0,Tags:["B1","X"]}- :
/entitydata @e[tag=B1] {ConversionTime:40}It worked in 1.11.2
Description: Ticking entity java.lang.NullPointerException: Ticking entity at amr.b(SourceFile:2627) at ads.dr(SourceFile:186) at ads.B_(SourceFile:113) at amr.a(SourceFile:1514) at om.a(SourceFile:714) at amr.h(SourceFile:1499) at amr.k(SourceFile:1382) at om.k(SourceFile:547) at net.minecraft.server.MinecraftServer.D(SourceFile:634) at net.minecraft.server.MinecraftServer.C(SourceFile:562) at cgx.C(SourceFile:154) at net.minecraft.server.MinecraftServer.run(SourceFile:466) at java.lang.Thread.run(Thread.java:745)Description: Ticking entity java.lang.NullPointerException: Ticking entity at amo.b(SourceFile:2631) at adq.dr(SourceFile:186) at adq.B_(SourceFile:113) at amo.a(SourceFile:1521) at ok.a(SourceFile:714) at amo.h(SourceFile:1499) at amo.k(SourceFile:1382) at ok.k(SourceFile:547) at net.minecraft.server.MinecraftServer.D(SourceFile:634) at net.minecraft.server.MinecraftServer.C(SourceFile:562) at cgu.C(SourceFile:154) at net.minecraft.server.MinecraftServer.run(SourceFile:466) at java.lang.Thread.run(Thread.java:745)
Sorry but my English is not the best
This closes the game
- :
summon minecraft:zombie_villager ~ ~1.5 ~ {Profession:0,Silent:1,NoAI:true,Rotation:[90.0f,0.0f],Age:0,Tags:["B1","X"]}- :
/entitydata @e[tag=B1] {ConversionTime:40}It worked in 1.11.2
Description: Ticking entity java.lang.NullPointerException: Ticking entity at amr.b(SourceFile:2627) at ads.dr(SourceFile:186) at ads.B_(SourceFile:113) at amr.a(SourceFile:1514) at om.a(SourceFile:714) at amr.h(SourceFile:1499) at amr.k(SourceFile:1382) at om.k(SourceFile:547) at net.minecraft.server.MinecraftServer.D(SourceFile:634) at net.minecraft.server.MinecraftServer.C(SourceFile:562) at cgx.C(SourceFile:154) at net.minecraft.server.MinecraftServer.run(SourceFile:466) at java.lang.Thread.run(Thread.java:745)Description: Ticking entity java.lang.NullPointerException: Ticking entity at amo.b(SourceFile:2631) at adq.dr(SourceFile:186) at adq.B_(SourceFile:113) at amo.a(SourceFile:1521) at ok.a(SourceFile:714) at amo.h(SourceFile:1499) at amo.k(SourceFile:1382) at ok.k(SourceFile:547) at net.minecraft.server.MinecraftServer.D(SourceFile:634) at net.minecraft.server.MinecraftServer.C(SourceFile:562) at cgu.C(SourceFile:154) at net.minecraft.server.MinecraftServer.run(SourceFile:466) at java.lang.Thread.run(Thread.java:745)Sorry but my English is not the best
This closes the game
- :
summon minecraft:zombie_villager ~ ~1.5 ~ {Profession:0,Silent:1,NoAI:true,Rotation:[90.0f,0.0f],Age:0,Tags:["B1","X"]}- :
/entitydata @e[tag=B1] {ConversionTime:40}It worked in 1.11.2
crash-2017-05-15_13.52.53-server.txt1.12-pre2
Description: Ticking entity java.lang.NullPointerException: Ticking entity at amo.b(SourceFile:2631) at adq.dr(SourceFile:186) at adq.B_(SourceFile:113) at amo.a(SourceFile:1521) at ok.a(SourceFile:714) at amo.h(SourceFile:1499) at amo.k(SourceFile:1382) at ok.k(SourceFile:547) at net.minecraft.server.MinecraftServer.D(SourceFile:634) at net.minecraft.server.MinecraftServer.C(SourceFile:562) at cgu.C(SourceFile:154) at net.minecraft.server.MinecraftServer.run(SourceFile:466) at java.lang.Thread.run(Thread.java:745)crash-2017-05-17_21.03.51-server.txt(1.12-pre3)
Description: Ticking entity java.lang.NullPointerException: Ticking entity at amr.b(SourceFile:2627) at ads.dr(SourceFile:186) at ads.B_(SourceFile:113) at amr.a(SourceFile:1514) at om.a(SourceFile:714) at amr.h(SourceFile:1499) at amr.k(SourceFile:1382) at om.k(SourceFile:547) at net.minecraft.server.MinecraftServer.D(SourceFile:634) at net.minecraft.server.MinecraftServer.C(SourceFile:562) at cgx.C(SourceFile:154) at net.minecraft.server.MinecraftServer.run(SourceFile:466) at java.lang.Thread.run(Thread.java:745)
Sorry but my English is not the best
This closes the game
- :
summon minecraft:zombie_villager ~ ~1.5 ~ {Profession:0,Silent:1,NoAI:true,Rotation:[90.0f,0.0f],Age:0,Tags:["B1","X"]}- :
/entitydata @e[tag=B1] {ConversionTime:40}It worked in 1.11.2
crash-2017-05-15_13.52.53-server.txt(1.12-pre2)
Description: Ticking entity java.lang.NullPointerException: Ticking entity at amo.b(SourceFile:2631) at adq.dr(SourceFile:186) at adq.B_(SourceFile:113) at amo.a(SourceFile:1521) at ok.a(SourceFile:714) at amo.h(SourceFile:1499) at amo.k(SourceFile:1382) at ok.k(SourceFile:547) at net.minecraft.server.MinecraftServer.D(SourceFile:634) at net.minecraft.server.MinecraftServer.C(SourceFile:562) at cgu.C(SourceFile:154) at net.minecraft.server.MinecraftServer.run(SourceFile:466) at java.lang.Thread.run(Thread.java:745)crash-2017-05-17_21.03.51-server.txt(1.12-pre3)
Description: Ticking entity java.lang.NullPointerException: Ticking entity at amr.b(SourceFile:2627) at ads.dr(SourceFile:186) at ads.B_(SourceFile:113) at amr.a(SourceFile:1514) at om.a(SourceFile:714) at amr.h(SourceFile:1499) at amr.k(SourceFile:1382) at om.k(SourceFile:547) at net.minecraft.server.MinecraftServer.D(SourceFile:634) at net.minecraft.server.MinecraftServer.C(SourceFile:562) at cgx.C(SourceFile:154) at net.minecraft.server.MinecraftServer.run(SourceFile:466) at java.lang.Thread.run(Thread.java:745)
ConversionTimeSetting ConversionTime for zombie villager without setting ConversionPlayer crashes server
Sorry but my English is not the best
This closes the game
- :
summon minecraft:zombie_villager ~ ~1.5 ~ {Profession:0,Silent:1,NoAI:true,Rotation:[90.0f,0.0f],Age:0,Tags:["B1","X"]}- :
/entitydata @e[tag=B1] {ConversionTime:40}It worked in 1.11.2
crash-2017-05-15_13.52.53-server.txt(1.12-pre
2)Description: Ticking entity java.lang.NullPointerException: Ticking entity at amo.b(SourceFile:2631) at adq.dr(SourceFile:186) at adq.B_(SourceFile:113) at amo.a(SourceFile:1521) at ok.a(SourceFile:714) at amo.h(SourceFile:1499) at amo.k(SourceFile:1382) at ok.k(SourceFile:547) at net.minecraft.server.MinecraftServer.D(SourceFile:634) at net.minecraft.server.MinecraftServer.C(SourceFile:562) at cgu.C(SourceFile:154) at net.minecraft.server.MinecraftServer.run(SourceFile:466) at java.lang.Thread.run(Thread.java:745)crash-2017-05-17_21.03.51-server.txt(1.12-pre3)
Description: Ticking entity java.lang.NullPointerException: Ticking entity at amr.b(SourceFile:2627) at ads.dr(SourceFile:186) at ads.B_(SourceFile:113) at amr.a(SourceFile:1514) at om.a(SourceFile:714) at amr.h(SourceFile:1499) at amr.k(SourceFile:1382) at om.k(SourceFile:547) at net.minecraft.server.MinecraftServer.D(SourceFile:634) at net.minecraft.server.MinecraftServer.C(SourceFile:562) at cgx.C(SourceFile:154) at net.minecraft.server.MinecraftServer.run(SourceFile:466) at java.lang.Thread.run(Thread.java:745)The bug
Setting a ConversionTime for a zombie villager without setting ConversionPlayerLeast and ConversionPlayerMost crashes the server.
How to reproduce
/summon zombie_villager ~ ~ ~ {ConversionTime:0}crash-2017-05-17_21.03.51-server.txt(1.12-pre3, 1.12-pre5)
Description: Ticking entity java.lang.NullPointerException: Ticking entity at amr.b(SourceFile:2627) at ads.dr(SourceFile:186) at ads.B_(SourceFile:113) at amr.a(SourceFile:1514) at om.a(SourceFile:714) at amr.h(SourceFile:1499) at amr.k(SourceFile:1382) at om.k(SourceFile:547) at net.minecraft.server.MinecraftServer.D(SourceFile:634) at net.minecraft.server.MinecraftServer.C(SourceFile:562) at cgx.C(SourceFile:154) at net.minecraft.server.MinecraftServer.run(SourceFile:466) at java.lang.Thread.run(Thread.java:745)Code analysis
Based on 1.12-pre3 decompiled using CFR
It looks like the UUID of the player who started the conversion is compared with the UUIDs of online players to then trigger the advancement trigger cured_zombie_villager. The problem is that it is not tested if the passed UUID is null which causes a NullPointerException when the method equals is called for it.
The bug
Setting a ConversionTime for a zombie villager without setting ConversionPlayerLeast and ConversionPlayerMost crashes the server.
How to reproduce
/summon zombie_villager ~ ~ ~ {ConversionTime:0}crash-2017-05-17_21.03.51-server.txt(1.12-pre3, 1.12-pre5)
Description: Ticking entity java.lang.NullPointerException: Ticking entity at amr.b(SourceFile:2627) at ads.dr(SourceFile:186) at ads.B_(SourceFile:113) at amr.a(SourceFile:1514) at om.a(SourceFile:714) at amr.h(SourceFile:1499) at amr.k(SourceFile:1382) at om.k(SourceFile:547) at net.minecraft.server.MinecraftServer.D(SourceFile:634) at net.minecraft.server.MinecraftServer.C(SourceFile:562) at cgx.C(SourceFile:154) at net.minecraft.server.MinecraftServer.run(SourceFile:466) at java.lang.Thread.run(Thread.java:745)Code analysis
Based on 1.12-pre3 decompiled using CFR
It looks like the UUID of the player who started the conversion is compared with the UUIDs of online players to then trigger the advancement trigger cured_zombie_villager. The problem is that it is not tested if the passed UUID is null which causes a NullPointerException when the method equals is called for it.
The bug
Setting a ConversionTime for a zombie villager without setting ConversionPlayerLeast and ConversionPlayerMost crashes the server.
crash-2017-05-17_21.03.51-server.txt(1.12-pre3, 1.12-pre5)
Description: Ticking entity java.lang.NullPointerException: Ticking entity at amr.b(SourceFile:2627) at ads.dr(SourceFile:186) at ads.B_(SourceFile:113) at amr.a(SourceFile:1514) at om.a(SourceFile:714) at amr.h(SourceFile:1499) at amr.k(SourceFile:1382) at om.k(SourceFile:547) at net.minecraft.server.MinecraftServer.D(SourceFile:634) at net.minecraft.server.MinecraftServer.C(SourceFile:562) at cgx.C(SourceFile:154) at net.minecraft.server.MinecraftServer.run(SourceFile:466) at java.lang.Thread.run(Thread.java:745)How to reproduce
/summon zombie_villager ~ ~ ~ {ConversionTime:0}Code analysis
Based on 1.12-pre3 decompiled using CFR
It looks like the UUID of the player who started the conversion is compared with the UUIDs of online players to then trigger the advancement trigger cured_zombie_villager. The problem is that it is not tested if the passed UUID is null which causes a NullPointerException when the method equals is called for it.
Setting ConversionTime forzombie villager withoutsettingConversionPlayer crashes serverConverting zombie villager without ConversionPlayer set crashes server
relates to
is duplicated by

also a normal "summon minecraft:zombie_villager" - "entitydata @e[r=2]
{ConversionTime:40}Can you attach a crash report?
Can you attach a crash report?
Was not sure where you did it but found it - THX
[Helper] tryashtar
lars pedersen, tryashtar asks you to attach the crash report. Please attach it.
under labels or ? how
The file will be located in your ".minecraft" folder, under "crash-reports". It will have a similar filename to the screenshots.
To attach it, use the same method as attaching screenshots (drag the file onto the bug report's "attachments" section)
add alle 7 crash reports
and now i can't see my save game in 1.12 pre 5