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

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -