NullException when setting OnRatingBarChangeListener in Android
<p>I'm getting a NullPointerException when I try to set a listener on my rating bar
My ratingBar is inside a scrollView and above, outside this view there's a videoView wich plays a video.
My code:</p>

<pre><code>final RatingBar videoRating=(RatingBar)findViewById(R.id.ratingBarNews);
videoRating.setOnRatingBarChangeListener(new OnRatingBarChangeListener() {          
        public void onRatingChanged(RatingBar rBar, float fRating, boolean fromUser) {
            Log.i("rate_news", fRating);

        }
    });
</code></pre>

<p>The exception is thrown at:</p>

<pre><code>setOnRatingBarChangeListener
</code></pre>

<p>Is this because it's inside a scrollView, I tried a lot but with no success.
Thanks in advance.</p>
