DialogFragment sometimes throws weird exception on android -
i have stateless dialog fragment throws
attempt invoke virtual method 'android.support.v4.app.fragmenttransaction android.support.v4.app.fragmentmanager.begintransaction()' on null object reference exception on dismissallowingstateloss call.the line within dialogfragment class throws exception
fragmenttransaction ft = getfragmentmanager().begintransaction(); apparently getfragmentmanager() returns null.what cases when can happen?
Comments
Post a Comment