Need safety checks on string lengths
This commit is contained in:
parent
a42e8e4fc6
commit
ceed2923bd
@ -68,7 +68,7 @@ public class sigPlace {
|
|||||||
System.out.println(" Parsing "+f.getFileName());
|
System.out.println(" Parsing "+f.getFileName());
|
||||||
for (int i=0;i<content.size();i++) {
|
for (int i=0;i<content.size();i++) {
|
||||||
String s = content.get(i);
|
String s = content.get(i);
|
||||||
if (isHTMLFile(f)) {
|
if (s.length()>0&&isHTMLFile(f)) {
|
||||||
//Check for markdown pieces.
|
//Check for markdown pieces.
|
||||||
if (s.charAt(0)=='-') {
|
if (s.charAt(0)=='-') {
|
||||||
//Start of a title piece.
|
//Start of a title piece.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user