Fetching unit by type, build without type, and fixing a nullpointer crash (#9703)

* Pluh

* Pluh

* Update LExecutor.java

* fixed the null

* Update LExecutor.java

* I will point your null exception

* is it null or nah

* it is nah

* Update LExecutor.java

* Update LExecutor.java

* null zero
This commit is contained in:
Cubical box
2024-04-02 22:03:14 +08:00
committed by GitHub
parent e177035593
commit d3a78a9d42
2 changed files with 18 additions and 4 deletions

View File

@@ -1856,11 +1856,17 @@ public class LStatements{
fields(table, index, i -> index = i);
}
if(type == FetchType.buildCount || type == FetchType.build || type == FetchType.unitCount){
if(type == FetchType.buildCount || type == FetchType.build){
row(table);
fields(table, "block", extra, i -> extra = i);
}
if(type == FetchType.unitCount || type == FetchType.unit){
row(table);
fields(table, "unit", extra, i -> extra = i);
}
}
@Override