I've been following a tutorial (not sure if I can link it, so not gonna do it) and, even though I have the code exactly as it, it crashes. The comments on that web are disabled so I can't ask him directly. The crash, if I'm reading the log correctly, is saying that I don't have a name assigned for it to register ("java.lang.NullPointerException: Can't use a null-name for the registry, object null.").
Files (Not more than 10 lines of code):
Crash Report: https://pastebin.com/Uf4CX6w9
ExampleMod.java: https://pastebin.com/hSNqKefq
CustomSword.java: https://pastebin.com/zHPj1j6e
CommonProxy.java: https://pastebin.com/SbLwQaRq
mcmod.info: https://pastebin.com/xhAm73Ni
Sorry if my English is broken, non native language.