Girl: "hey"

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

Me: null

*Girl walks away*

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

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

    try {
    /* code */
    } catch {
    /* code */
    } finally {
    if (resp == null){
  • 23
    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
  • 6
    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.
  • 1
    Let's learn to handle theses exceptions, a psychologist can help you to write catch clauses 😂
  • 7
    Rewrite your brain in Rust?
  • 5
    "you.. you too.."
  • 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