onMeasure throw a NullPointerException if not settled the adapter
Merge pull request #9 from ffgiraldez/measure_nullpointer

Ignore null adapter when measuring.