title: How to get Edittext value with databinding?
body: <p>I have a ViewModel like that:</p>
  
  <pre><code>public class LoginViewModel {
  
      public final ObservableField&lt;String&gt; email =  new ObservableField&lt;&gt;();
      public final ObservableField&lt;String&gt; password = new ObservableField&lt;&gt;();
  
      public LoginViewModel() {
  </code></pre>
  
  <p>I have two editText and one button in my View:</p>
  
  <pre><code>&lt;EditText
              android:id="@+id/password"
              android:text="@={login.email}"/&gt;
  &lt;EditText
              android:id="@+id/password"
              android:text="@={login.password}"/&gt;
  
  &lt;Button android:onClick="onLoginClick"/&gt;
  </code></pre>
  
  <p>In my activity would like to print the two edittext value when button clicked, something like that:</p>
  
  <pre><code>LoginActivityBinding loginActivityBinding = DataBindingUtil.setContentView(this, R.layout.activity_login);
          Log.e("password", ""+loginActivityBinding.getLogin().password.get());
  </code></pre>
  
  <p>I get a Nullpointer Exception, how should I modify my code to get the values.</p>