title: IllegalStateException: Link does not have a NavController set
body: <p>I'm using Android Navigation Component for Navigation. I have a LoginFragment which has a button to transition to SignUpFragment. On clicking the button I'm getting this error.</p>
  
  <pre><code>java.lang.IllegalStateException: View android.support.v7.widget.AppCompatButton{49d9bd1 VFED..C.. ...P.... 201,917-782,1061 #7f090172 app:id/signUpLink} does not have a NavController set
  </code></pre>
  
  <p>Here is my nav_graph.xml</p>
  
  <pre><code>&lt;navigation xmlns:app="http://schemas.android.com/apk/res-auto"
          xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:tools="http://schemas.android.com/tools"
          app:startDestination="@id/loginFragment"&gt;
          &lt;fragment
              android:id="@+id/loginFragment"
              android:name="org.fossasia.openevent.app.core.auth.login.LoginFragment"
              android:label="login_fragment"
              tools:layout="@layout/login_fragment"&gt;
              &lt;action
                  android:id="@+id/action_loginFragment_to_signUpFragment"
                  app:destination="@id/signUpFragment" /&gt;
  
          &lt;/fragment&gt;
      &lt;/navigation&gt;
  </code></pre>
  
  <p>Here is the code in LoginFragment for Navigation -</p>
  
  <pre><code>binding.signUpLink.setOnClickListener(Navigation.createNavigateOnClickListener(R.id.action_loginFragment_to_signUpFragment, null));
  </code></pre>
  
  <p>Here is extract from activity layout file for NavHostFragment -</p>
  
  <pre><code>&lt;FrameLayout
      android:id="@+id/fragment_container"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      app:layout_behavior="@string/appbar_scrolling_view_behavior"
      android:name="android.navigation.fragment.NavHostFragment"
      app:navGraph="@navigation/main_navigation"
      app:defaultNavHost="true"/&gt;
  </code></pre>