Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'BungeeCord Plugin Development' started by HydroTekZ, Jun 24, 2015.
Don't name variables using upper case, I have no idea if plugin.FellesPlugin is some variable, or package and class. This is why we use standard names, to know what is what without having whole code.
FellesPlugin or ConnectorMySQL or maybe plugin is null, instead of asking you can use debug mode of your IDE, or if you don't know how to use it, and don't want use google to learn it:
And you will see what is null, if "plugin" is null, first println will print null, and next one will throw error.
Hard for us to help, could be anything that is null. Maybe it is your connection to the database or the output as it is called in your code.
I would say
is null or
Otherwise the Exception would be thrown in
getInt(String output, String command, Connection connection)
and not in line 42
It could also be that one of the variables
Your Answere is not entirely true. He can use any notation of naming he want. Right now he is using the notation UpperCamelCase.
However in Java it had been enforced that the camelCase notation is used.
He didn't say he can't, more he shouldn't. He's answer is true
I never said that his answere were false