Used FindBugs add-on. Two bugs found.