Issue #1 fix

If the function showPageList() is called after detached from activity,
the adapter is null.