Why doesn't this activiy finish?
<p>I have following code:</p>

<pre><code>    mQuestions=DictionaryDbWrapper.getInstance().getQuestionsSequence(
            this.getIntent().getStringExtra(ApplicationUtilities.TEST_CATEGORY_PARAMETER), 50);
    mQuestionsCount=mQuestions.size();
    Log.e("count", String.valueOf(mQuestionsCount));
    if (mQuestionsCount==0) {
        Log.e("1", "111");
        Toast.makeText(this, "В данной категории нет слов", Toast.LENGTH_LONG).show();
        this.finish();
    }

    makeQuestion();
</code></pre>

<p><code>mQuestions</code> is empty ArrayList, and I see that <code>count</code> equals 0 on Log always. Also I see <code>1/111</code> record on my Log always too. But my activity doesn't do a <strong>finish</strong> method! </p>

<p><code>makeQuestion</code> is method that needn't work with empty <code>mQuestion</code> (it throw Exception). But If I make a comment for <code>makeQuestion</code> then <code>finish</code> method works well! Method for this code works on main thread (it is executed from <code>onCreate()</code> method). </p>

<p>Please, suggest where I am going wrong.</p>

<p>Thanks in advance.</p>
