the problem is that you are creating your ListView in onCreateView()
and setting its adapter
in onCreate()
..
you should know that onCreate()
is always called before onCreateView()
and by that time your listview
is not being created .. thats why you are getting NullPointerException
.
Place your code of onCreate()
in onCreateView()