[Java] Be defensive when checking boundary condition.
[Java] Be defensive when checking boundary condition.

galderz/Aeron,mikeb01/Aeron,mikeb01/Aeron,real-logic/Aeron,EvilMcJerkface/Aeron,EvilMcJerkface/Aeron,mikeb01/Aeron,real-logic/Aeron,galderz/Aeron,real-logic/Aeron,real-logic/Aeron,EvilMcJerkface/Aeron,EvilMcJerkface/Aeron,mikeb01/Aeron,galderz/Aeron,galderz/Aeron