Description
longestCommonLength() is called by findSplitRow():
Text text = (mid == null) ? null : mid.getRow(); SortedMap<Double,Key> firstHalf = keys.headMap(.5); if (firstHalf.size() > 0) { Text beforeMid = firstHalf.get(firstHalf.lastKey()).getRow(); Text shorter = new Text(); int trunc = longestCommonLength(text, beforeMid);
If mid is null, text would be null.
However, text is dereferenced without null check in longestCommonLength().