title: When I added Text Input layout to my xml file its working but when i click on date picker class app is crashing
body: <p>I am making my edittext to material design (using TextInputLayout).It is working fine .But when I click on my DatePicker the app is crashing saying:</p>
  
  <pre><code>Attempt to invoke virtual method 'int android.widget.NumberPicker.getChildCount()' on a null object reference 
  </code></pre>
  
  <p>My gradle file as below </p>
  
  <pre><code>apply plugin: 'com.android.application'
  </code></pre>
  
  <p>I don't understand, removing the TextInputLayout fixes the problem...</p>
  
  <p><strong>NOTE:</strong> I have defined <code>Theme.AppCompat.Light</code> in manifest</p>