Fix StringIndexOutOfBoundsException in CommandLineRunner.java
Closes
@@ -1754,7 +1754,7 @@ public class CommandLineRunner extends
ConformanceConfig.Builder builder = ConformanceConfig.newBuilder();
// Looking for BOM.
- if (textProto.charAt(0) == UTF8_BOM_CODE) {
+ if (!textProto.isEmpty() && textProto.charAt(0) == UTF8_BOM_CODE) {
// Stripping the BOM.
textProto = textProto.substring(1);
}
