onMeasure throw NullPointerException 

onMeasure throw a NullPointerException if not settled the adapter