Skip to content

Commit fcf490f

Browse files
committed
Minor improvements
1 parent 030ccaf commit fcf490f

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/main/java/com/amazon/ion/v3/impl_1_1/template/TemplateReaderImpl.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,13 @@ open class TemplateReaderImpl internal constructor(
139139
iStack[s] = currentI
140140
constantPoolStack[s] = constantPool
141141

142+
if (firstArgStartIndex == secondArgStartIndex - 2) {
143+
// Empty expression group
144+
i = secondArgStartIndex + 1
145+
instruction = INSTRUCTION_NOT_SET
146+
continue
147+
}
148+
142149
val firstArg = pool.getSequence(arguments, bytecode, firstArgStartIndex + 1, constantPool)
143150

144151
i = if (firstArg.nextToken() != TokenTypeConst.END) {
@@ -149,7 +156,6 @@ open class TemplateReaderImpl internal constructor(
149156
firstArg.close()
150157
instruction = INSTRUCTION_NOT_SET
151158
}
152-
153159
else -> TODO("System Macro Instruction not supported ${MacroBytecode(instruction)}")
154160
}
155161
}

0 commit comments

Comments
 (0)