Null Pointer Exception in LedBargraph

Create issue
Issue #8 resolved
Patrick Kutch created an issue

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)

  1. Log in to comment