Posted November 18, 20177 yr Hey! So every time I run the Java Application (Minecraft Client), it gives me the following error which doesn't crash the game but concerns me a lot. Error: https://pastebin.com/j0ane0J6 Is this important or do I just leave it? Thanks! Edited November 18, 20177 yr by Differentiation
November 18, 20177 yr Ignore them, it throws this exception because you aren't using registered username ("Player700" and alike). Or you can specify your username and password in run configuration so it actually logs in.
November 18, 20177 yr For reference, that is an error that is trapped with a try...catch block. As there is a sensible thing to do in the event of failure, the error is printed to the console and the game moves on with its life. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
November 19, 20177 yr Author 7 hours ago, Draco18s said: For reference, that is an error that is trapped with a try...catch block. As there is a sensible thing to do in the event of failure, the error is printed to the console and the game moves on with its life. By the way, can you catch NullPointerException? Just curious. ItemStack stack = null; try { hoe.damageItem(1, playerIn); } catch (NullPointerException exception) { System.out.println("NullPointerException caught!"); } Edited November 19, 20177 yr by Differentiation
November 19, 20177 yr You can but it's easier to just check for null. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
November 19, 20177 yr Author 8 hours ago, Draco18s said: You can but it's easier to just check for null. Yeah... or just add the @Nonnull annotation
November 19, 20177 yr Author 2 hours ago, diesieben07 said: No, that's not what this annotation does. Just about figured that out
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.