julianharty / web-accessibility-testing

Automatically exported from code.google.com/p/web-accessibility-testing
Other
1 stars 0 forks source link

Fix null pointer exception caused by comparing 2 elements without properly checking if either input is null #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
currentSize in KeyboardHelpers.tabThroughWebPage() can be null, which wasn't 
expected so called methods e.g. in dimensionsAreEqual(...) that dereferenced 
the input parameters fail with a NPE.

The code needs to be reviewed to remove the conditions where these values can 
be null. Also the code needs to be made more robust to report these problems 
without failing.

Original issue reported on code.google.com by julianharty on 24 Oct 2012 at 3:37