Commit 152998fb authored by Miklos Magyari's avatar Miklos Magyari
Browse files

Fix for a potential null exception


Signed-off-by: Miklos Magyari's avatarMiklos Magyari <miklos.magyari@sigmatechnology.se>
parent 5df295be
......@@ -158,7 +158,11 @@ public final class ReferenceChain implements IReferenceChain {
return;
}
final int markedLimit = markedStates.pollLast().intValue();
final Integer polled = markedStates.pollLast();
if (polled == null) {
return;
}
final int markedLimit = polled.intValue();
for (int i = chainLinks.size() - 1; i >= markedLimit; i--) {
chainLinks.remove(i);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment