Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
fransafu307yin createFlirtyResponse add this:
try {
/* code */
} catch {
/* code */
} finally {
if (resp == null){
changeTopicConversation();
}
} -
Root825417yInstant flirt? I'd walk away, too!
Even moreso when the ill-thought-out code is faulty. -
Flygger19817yMaybe 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..? -
@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.
-
Flygger19817y@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?
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*
rant