Bugs are Fun!!
Introduction / Audience I stumbled across a bug in my code and I couldn't figure out what was causing it. After tracking it down, I felt this would make a good post to highlight a rare and interesting bug. I believe this is a known bug so this post is nothing groundbreaking, but I don't think it is very widely known. The target audience is anyone from beginners to experts: For beginners, you can learn how to approach finding a difficult bug in a logical methodical manner. It will also introduce you to Kotlin Playground if you haven't seen it before. For experts, you can test you knowledge and experience and see if you can identify the issue from the original code. Warning: This post contains bugs and cute images of bugs. The Bug The bug was, as is usually the case, hidden in a large amount of code. The Error Exception in thread "main" java.lang.NullPointerException : Cannot invoke "Node$Option.getCode()" because "it" is null So a null-pointe...

.png)
