Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upNullPointerException crash in Java API #3729
Comments
This comment has been minimized.
This comment has been minimized.
|
@njbartlett shouldn't this be in the java client issues? |
This comment has been minimized.
This comment has been minimized.
|
@krasi-georgiev Sorry yes, I will move it. |
njbartlett
closed this
Jan 24, 2018
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
lock
bot
locked and limited conversation to collaborators
Mar 23, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
njbartlett commentedJan 24, 2018
In the Java API, the following code works:
... but the following code crashes with a
NullPointerException:I found the following issue which states "for a labelled metric you must specify the labels". However I cannot believe that you actually intend for the program to crash when a programmer makes this mistake? And not even with any explanation of the reason for the crash?
At the very least I believe this should be an
IllegalArgumentExceptionwith a message attached, e.g. "for a labelled metric you must specify the labels".