title: NullPointerException in
body: <p>Since I started targetting android M I'm getting NPE in View.getHardwareLayer on many different machines. Two such errors here:</p>
  
  <pre><code>Exception: java.lang.NullPointerException
   raw
  android.view.View.getHardwareLayer (View.java:10178)
  android.view.ViewGroup.drawChild (ViewGroup.java:2863)
  android.view.ViewGroup.dispatchDraw (ViewGroup.java:2489)
  android.view.View.getDisplayList (View.java:10415)
  android.view.ViewGroup.drawChild (ViewGroup.java:2850)
  android.support.v4.widget.DrawerLayout.drawChild (DrawerLayout.java:1229)
  android.view.ViewGroup.dispatchDraw (ViewGroup.java:2489)
  android.view.View.getDisplayList (View.java:10415)
  android.view.ViewGroup.drawChild (ViewGroup.java:2850)
  com.sothree.slidinguppanel.SlidingUpPanelLayout.drawChild (SlidingUpPanelLayout.java:888)
  android.view.ViewGroup.dispatchDraw (ViewGroup.java:2489)
  android.view.View.draw (View.java:10981)
  com.sothree.slidinguppanel.SlidingUpPanelLayout.draw (SlidingUpPanelLayout.java:941)
  android.view.View.getDisplayList (View.java:10417)
  android.view.ViewGroup.drawChild (ViewGroup.java:2850)
  android.view.ViewGroup.dispatchDraw (ViewGroup.java:2489)
  android.view.View.draw (View.java:10981)
  android.widget.FrameLayout.draw (FrameLayout.java:450)
  android.view.View.getDisplayList (View.java:10417)
  android.view.ViewGroup.drawChild (ViewGroup.java:2850)
  android.view.ViewGroup.dispatchDraw (ViewGroup.java:2489)
  android.view.View.getDisplayList (View.java:10415)
  android.view.ViewGroup.drawChild (ViewGroup.java:2850)
  android.view.ViewGroup.dispatchDraw (ViewGroup.java:2489)
  android.view.View.getDisplayList (View.java:10415)
  android.view.ViewGroup.drawChild (ViewGroup.java:2850)
  android.view.ViewGroup.dispatchDraw (ViewGroup.java:2489)
  android.view.View.getDisplayList (View.java:10415)
  android.view.ViewGroup.drawChild (ViewGroup.java:2850)
  android.view.ViewGroup.dispatchDraw (ViewGroup.java:2489)
  android.view.View.getDisplayList (View.java:10415)
  android.view.ViewGroup.drawChild (ViewGroup.java:2850)
  android.view.ViewGroup.dispatchDraw (ViewGroup.java:2489)
  android.view.View.draw (View.java:10981)
  android.widget.FrameLayout.draw (FrameLayout.java:450)
  com.android.internal.policy.impl.PhoneWindow$DecorView.draw (PhoneWindow.java:2126)
  android.view.View.getDisplayList (View.java:10417)
  android.view.HardwareRenderer$GlRenderer.draw (HardwareRenderer.java:899)
  android.view.ViewRootImpl.draw (ViewRootImpl.java:1910)
  android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:1634)
  android.view.ViewRootImpl.handleMessage (ViewRootImpl.java:2442)
  android.os.Handler.dispatchMessage (Handler.java:99)
  android.os.Looper.loop (Looper.java:137)
  android.app.ActivityThread.main (ActivityThread.java:4456)
  java.lang.reflect.Method.invokeNative (Method.java)
  dalvik.system.NativeStart.main (NativeStart.java)
  </code></pre>
  
  <p>And another one:</p>
  
  <pre><code>Fatal Exception: java.lang.NullPointerException
   raw
  android.view.View.getHardwareLayer (View.java:10178)
  android.view.ViewGroup.drawChild (ViewGroup.java:2863)
  android.view.ViewGroup.dispatchDraw (ViewGroup.java:2489)
  android.view.View.getDisplayList (View.java:10415)
  android.view.ViewGroup.dispatchGetDisplayList (ViewGroup.java:2597)
  android.view.View.getDisplayList (View.java:10380)
  android.view.ViewGroup.dispatchGetDisplayList (ViewGroup.java:2597)
  android.view.View.getDisplayList (View.java:10380)
  android.view.ViewGroup.dispatchGetDisplayList (ViewGroup.java:2597)
  android.view.View.getDisplayList (View.java:10380)
  android.view.ViewGroup.dispatchGetDisplayList (ViewGroup.java:2597)
  android.view.View.getDisplayList (View.java:10380)
  android.view.ViewGroup.dispatchGetDisplayList (ViewGroup.java:2597)
  android.view.View.getDisplayList (View.java:10380)
  android.view.ViewGroup.dispatchGetDisplayList (ViewGroup.java:2597)
  android.view.View.getDisplayList (View.java:10380)
  android.view.ViewGroup.dispatchGetDisplayList (ViewGroup.java:2597)
  android.view.View.getDisplayList (View.java:10380)
  android.view.ViewGroup.dispatchGetDisplayList (ViewGroup.java:2597)
  android.view.View.getDisplayList (View.java:10380)
  android.view.HardwareRenderer$GlRenderer.draw (HardwareRenderer.java:899)
  android.view.ViewRootImpl.draw (ViewRootImpl.java:1910)
  android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:1634)
  android.view.ViewRootImpl.handleMessage (ViewRootImpl.java:2442)
  android.os.Handler.dispatchMessage (Handler.java:99)
  android.os.Looper.loop (Looper.java:137)
  android.app.ActivityThread.main (ActivityThread.java:4456)
  java.lang.reflect.Method.invokeNative (Method.java)
  dalvik.system.NativeStart.main (NativeStart.java)
  </code></pre>
  
  <p>Is there any change in M that I should be aware of to get rid of these exceptions?</p>