github/gauges-android — Issue #12: NullPointerException in GaugeViewHolder
Author: rtyley
Created: 2012-02-22 21:07:35+00:00
State: open

We got an NPE against v1.0 at Feb 22, 2012 8:50:50 PM

java.lang.NullPointerException
at com.github.mobile.gauges.ui.GaugeViewHolder.updateViewFor(GaugeViewHolder.java:78)

https://github.com/github/gauges-android/blob/gauges-android-1.0/app/src/main/java/com/github/mobile/gauges/ui/GaugeViewHolder.java#L78

viewsText.setText(NumberFormat.getIntegerInstance().format(gauge.getToday().getViews()));

I would guess that `gauge.getToday()` is returning null as `gauge` has already been evaluated.