mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-04-29 22:04:25 +02:00
fix: return null for out of bounds index
This commit is contained in:
parent
ec889cfd86
commit
24fbf87a2b
@ -52,8 +52,11 @@ public class SpecFlagsArray extends IntegerArray implements BlockLoad, JSONConve
|
||||
return specFlagList;
|
||||
}
|
||||
public SpecFlag getFlag(int id){
|
||||
int offset = id & 0xffff;
|
||||
offset = offset * 4;
|
||||
id = id & 0xffff;
|
||||
if(id >= size()){
|
||||
return null;
|
||||
}
|
||||
int offset = id * 4;
|
||||
return new SpecFlag(this, offset);
|
||||
}
|
||||
public void set(int entryId, int value){
|
||||
|
Loading…
x
Reference in New Issue
Block a user