Fix null pointer emulator bug for Node children

This commit is contained in:
J-Jamet committed 2018-03-09 23:29:20 +01:00
1 parent 53e7cc7f72
commit dd478d7cd4
1 file changed
+3 -1
@@ -93,7 +93,9 @@ public class NodeAdapter extends RecyclerView.Adapter<BasicViewHolder> {
*/
public void rebuildList(PwGroup group) {
this.nodeSortedList.clear();
this.nodeSortedList.addAll(group.getDirectChildren());
if (group != null) {
this.nodeSortedList.addAll(group.getDirectChildren());
}
}
/**