- changed status to resolved
Null Pointer Exception in LedBargraph
Issue #8
resolved
public final void setNoOfLeds(final int NO_OF_LEDS) { int amount = NO_OF_LEDS < 5 ? 5 : NO_OF_LEDS; if (amount > noOfLeds.get()) {
Looks like you are using the noOfLeds property before ensuring it is not null.
I would assume it should look more like the setLedSize function.
Comments (1)
-
repo owner - Log in to comment