[1.12.2] Java Null Pointer Execption [Maybe CoFH?]
Skaphegor opened this issue ยท 14 comments
Intro:
While I was creating some scripts, I encountered an issue. I don't know where the error is. but it results in a crash. It might be that the TE sawmill is broken. I does not seems that there is an error in the scripts.
What happens:
https://pastebin.com/uwt7cC08 //crash report
What you expected to happen:
Loading the game properly.
Scripts used
01 https://pastebin.com/xfm9vtjm
02 https://pastebin.com/btMT7Ev7
03 https://pastebin.com/82zZi6v2
extra https://pastebin.com/4StcNxvH
extra2 https://pastebin.com/dqGTf133
crafttweaker.log file
https://pastebin.com/47k1tvtA //The next step would to be adding additional pulverizer recipes. That works well before I added some oredictionary changes in script 03.
Affected Versions (Do not use "latest"):
- Minecraft: 1.12.2
- Forge: 2765
- Crafttweaker: 4.1.11
- Using a server: No.
- CoFH Core: 4.6.1.22
- Thermal Expansion: 5.5.2.39
- Thermal Foundation: 2.6.1.22
- CCL: 3.2.2.353
Your most recent log file where the issue was present:
latest.txt [File size was to large for pastebin, do not blame me.]
Is this still an issue with the latest CrT version?
No longer crashing the game at least, but throwing "Error while applying actions" and failing to load the rest of the script. Using latest version 4.1.15. or at least similar issue with replaceAllOccurrences
Script in question unification.txt starting @ line 217
crafttweaker.log throwing error starting @ line 389
Script was working 4.1.14
@DelviousCrafts How do you know? I still get same crash if I try to replace obsidian.
Can you try with the latest on curseforge, 4.1.18 iirc, we may have inadvertently fixed this.
@NickelHub Try removing all your calls to replaceAllOccurences
I think that may be the reason why there are suddenly null inputs in shapeless recipes. (Remove file 3, oredictionary.zs)
I can add a null hceck there but honestly nulls in shapeless should never occur in the first place, and it can't be caused by an addShapeless as that nullchecks
I removed everything new. Only if I try to replace obsidian, the game crashes.
I removed replacing obsidian for now., so there is no crash anymore..
But I'm not sure what causes a recipe to be Null. Maybe the thing that I did to the Mekanism machines in 02?
I tested around.
recipes.replaceAllOccurences(minecraft:obsidian, ore:obsidian);
This one is producing the crash.