title: (androidx.recyclerview.widget.RecyclerView$LayoutManager)' on a null object reference
body: <p>I get error : &quot;Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void androidx.recyclerview.widget.RecyclerView.setLayoutManager(androidx.recyclerview.widget.RecyclerView$LayoutManager)' on a null object reference&quot; while trying to draw recyclerview on a dialog box</p>
  <p>Below is my code for the same.</p>
  <pre><code>public void openreview(View view) {
      rv_review=view.findViewById(R.id.rv_test);
      adapter_review = new mcqAdapter(this, nowStory);
      rv_review.setLayoutManager(new LinearLayoutManager(this));
      rv_review.setAdapter(adapter_review);
      adapter_review.setOnItemClickListener(onItemClickListener);
      slctssn.show();
  }
  </code></pre>
  <p>More details of error says that the setting layout is making the error.
  Could you pls anybody help me..</p>