mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-05-02 07:04:27 +02:00
check for null item
This commit is contained in:
parent
00e0a21a7d
commit
004f7fc6f1
@ -32,8 +32,10 @@ public class BlockList<T extends Block> extends Block {
|
|||||||
mItems=new ArrayList<>();
|
mItems=new ArrayList<>();
|
||||||
}
|
}
|
||||||
public boolean remove(T item){
|
public boolean remove(T item){
|
||||||
item.setParent(null);
|
if(item!=null){
|
||||||
item.setIndex(-1);
|
item.setParent(null);
|
||||||
|
item.setIndex(-1);
|
||||||
|
}
|
||||||
return mItems.remove(item);
|
return mItems.remove(item);
|
||||||
}
|
}
|
||||||
public void add(T item){
|
public void add(T item){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user