MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/shittyprogramming/comments/2w2s8d/i_am_a_null_pointer_ama/conp1ff
r/shittyprogramming • u/tmewett from The Cloud™ • Feb 16 '15
127 comments sorted by
View all comments
Show parent comments
9
It's an error message.
For a nullpointer.
Do you really need to memorize the exact location of the Java error type?
5 u/katyne Feb 17 '15 you do when it's in java.lang 4 u/Bratmon Feb 17 '15 No, but you do need to learn the difference between the Java language and the awt library. 1 u/[deleted] Feb 17 '15 I know thhe difference, but a nullpointer is a nullpointer. 3 u/Bratmon Feb 17 '15 Yes,but apparently you don't know what awt has to do with that. 2 u/[deleted] Feb 17 '15 Eh, I typed awt instead of lang. Why, I don't know, probably because AWT is what has been throwing errors for me recently.I'm just tired and stupid right now. And sick of trying to get my own shitty programming working properly. 1 u/iloveportalz0r Feb 17 '15 The important detail here is java.lang 1 u/wonderb0lt Feb 17 '15 It's not that hard to remember, and once you got it a thousand times you remember the FQN. 1 u/immibis Feb 18 '15 No, but you should know it anyway as a side effect of knowing some things that are actually important.
5
you do when it's in java.lang
java.lang
4
No, but you do need to learn the difference between the Java language and the awt library.
1 u/[deleted] Feb 17 '15 I know thhe difference, but a nullpointer is a nullpointer. 3 u/Bratmon Feb 17 '15 Yes,but apparently you don't know what awt has to do with that. 2 u/[deleted] Feb 17 '15 Eh, I typed awt instead of lang. Why, I don't know, probably because AWT is what has been throwing errors for me recently.I'm just tired and stupid right now. And sick of trying to get my own shitty programming working properly.
1
I know thhe difference, but a nullpointer is a nullpointer.
3 u/Bratmon Feb 17 '15 Yes,but apparently you don't know what awt has to do with that. 2 u/[deleted] Feb 17 '15 Eh, I typed awt instead of lang. Why, I don't know, probably because AWT is what has been throwing errors for me recently.I'm just tired and stupid right now. And sick of trying to get my own shitty programming working properly.
3
Yes,but apparently you don't know what awt has to do with that.
2 u/[deleted] Feb 17 '15 Eh, I typed awt instead of lang. Why, I don't know, probably because AWT is what has been throwing errors for me recently.I'm just tired and stupid right now. And sick of trying to get my own shitty programming working properly.
2
Eh, I typed awt instead of lang. Why, I don't know, probably because AWT is what has been throwing errors for me recently.
I'm just tired and stupid right now. And sick of trying to get my own shitty programming working properly.
The important detail here is java.lang
It's not that hard to remember, and once you got it a thousand times you remember the FQN.
No, but you should know it anyway as a side effect of knowing some things that are actually important.
9
u/[deleted] Feb 17 '15
It's an error message.
For a nullpointer.
Do you really need to memorize the exact location of the Java error type?