File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
src/Compiler/Lang/Assembler Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 1414use PHPJava \Compiler \Lang \Assembler \Traits \Enhancer \Operation \LocalVariableAssignable ;
1515use PHPJava \Compiler \Lang \Assembler \Traits \Enhancer \Operation \LocalVariableLoadable ;
1616use PHPJava \Compiler \Lang \Assembler \Traits \OperationManageable ;
17+ use PHPJava \Exceptions \AssembleStructureException ;
1718use PHPJava \Kernel \Maps \OpCode ;
1819use PHPJava \Kernel \Types \_Void ;
1920use PHPJava \Utilities \ArrayTool ;
@@ -128,6 +129,14 @@ public function assemble(): void
128129 }
129130 }
130131
132+ foreach ($ parameters as $ keyName => $ value ) {
133+ if ($ value === null ) {
134+ throw new AssembleStructureException (
135+ 'Parameter length are mismatch. '
136+ );
137+ }
138+ }
139+
131140 $ operations = [];
132141 $ defaultLocalVariableOperations = $ this ->getStore ()->getAll ();
133142
You can’t perform that action at this time.
0 commit comments