added id management to adapter, now crashes

NullPointerException at list.get() in L292