Closed BryanGazali closed 3 years ago
update on null pointer crash issue. I believe where the error was actually taking place with the code "portsNameList.value!!.size > 1", because portsNameList.value!!.size was returning a null value. This also means that "portsNameList.value?.add(ports[i])" wasn't properly adding values to portsNameList. I believe this is because portsNameList was not given an empty array list via ArrayList(), so that should be done somewhere in onCreateView.
Tor is stopped but it is still showing stoping tor ..
fixes #1784
Description
refactor tortab to mvvm format
currently there's a null point exception error in TorTabViewModel line 136. The problem seems to be with the line "portsNameList.value?.add("All")".