712
luaq
6y

Girl: "hey"

My Brain:
java.lang.NullPointerException:
at net.brain.functions.Talk.retrieveSpeech(Talk.java:2978)
at net.brain.functions.Talk.createFlirtyResponse(Talk.java:3132)

Me: null

*Girl walks away*

Comments
  • 65
    Yeah, Java is often a bit slow 😔
  • 75
    Somebody forgot to unit-test some business-critical code...
  • 108
    But it worked when I tested in isolation.
  • 48
    hopefully the next girl will ‘catch’ that exception

    good luck mate
  • 12
    you never return null, use a default value for such things
  • 19
    in createFlirtyResponse add this:

    try {
    /* code */
    } catch {
    /* code */
    } finally {
    if (resp == null){
    changeTopicConversation();
    }
    }
  • 22
    You need to use the AddAlcohol method before talking
  • 3
    @sandeepb jajaja addAlcohol() and tryAgain()
  • 3
    Where is that error 404 flirt line not found comment 😂
  • 11
    Instant flirt? I'd walk away, too!
    Even moreso when the ill-thought-out code is faulty.
  • 2
    U should use try catch and in catch statement u shloud forget about it
  • 5
    Maybe just try responding "hi" and hear what she wanted by making contact?
    Maybe you had dropped or spilled something, maybe you met her before and forgot it in the middle of all your wedding plans with her, or maybe she was polite and expected other humans to be able to do the same..?
  • 6
    Yea thats a known issue caused by the friendzoned library.
  • 7
    Rewrite your brain in Rust?
  • 0
    Friends: logger.log(e);
  • 0
    It's really just because Java is not a good language.
  • 4
    @Root makes sense. The bug is in the method that decided to call createFlirtyResponse with null knowledge about the girl. No wonder it threw an NPE.
  • 0
    @redundandundant or probably in the (lack of) logic for checking the context and existing relations to the subject before trying to instantiate the subject as an object and communicate with (= to) the instance?
  • 0
    @matsaki95 ow yeah well he *should* have had tetanus shots regularly....
  • 0
    Option monad would have helped you a lot there buddy. 😂
Add Comment