mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 19:22:50 -06:00
in case of null argument it is more intuitive to report the argument index by counting from 1.
This commit is contained in:
@@ -40,7 +40,7 @@ public class Expr implements Serializable {
|
|||||||
throw new IllegalArgumentException("fun == null");
|
throw new IllegalArgumentException("fun == null");
|
||||||
for (int i = 0; i < args.length; i++) {
|
for (int i = 0; i < args.length; i++) {
|
||||||
if (args[i] == null)
|
if (args[i] == null)
|
||||||
throw new IllegalArgumentException("the "+i+"th argument is null");
|
throw new IllegalArgumentException("the "+(i+1)+"th argument is null");
|
||||||
}
|
}
|
||||||
|
|
||||||
this.pool = new Pool();
|
this.pool = new Pool();
|
||||||
|
|||||||
Reference in New Issue
Block a user