Indentation problem, the closing bracket of the method has the same depth of the if/else block which should be one level deeper.