[VISUALIZER] Replace get with getOrNull to avoid NullPointerException

This commit is contained in:
Ivan Kylchik
2021-03-04 15:40:06 +03:00
committed by TeamCityServer
parent f32f61a950
commit 74c19807b8
@@ -29,7 +29,7 @@ object Annotator {
annotationLines[lastLevel].replace(startReplace, startReplace + ann.text.length, ann.text)
for (i in 0 until lastLevel) {
if (annotationLines[i][startReplace] == ' ') { //to avoid char replacement for a multilevel annotation
if (annotationLines[i].getOrNull(startReplace) == ' ') { //to avoid char replacement for a multilevel annotation
annotationLines[i].replace(startReplace, startReplace + 1, verticalLine)
}
}