NanowarOfSteel / HelloWorld

341 stars 25 forks source link

Fix nullPointerException #7

Closed Erkigmo closed 18 hours ago

Erkigmo commented 1 day ago

This gets rid of the nullPointerException bug, making the code a lot more 'secure and portable,' so you can run it everywhere without crashing the code. The nullPointerException still is outputed, but it is done so without causing the program flow to halt.

DanySK commented 21 hours ago

You should never catch generic exceptions. To be honest, you should never catch NPEs either, these should be dealt with by fixing your programming errors.

In this case, though, the code is bidirectionally linked to the song, and the song has been recorded. I think this PR can't get merged anyway.

NanowarOfSteel commented 18 hours ago

As @DanySK said. The nullpointer is part of the song, so we cannot merge this. sorry. :D