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