In the following code,
if(cmp!=null && cmp.getParent() instanceof Form) {
cmp = cmp.getParent();
}
String componentName = cmp.getName();
the line String componentName = cmp.getName(); generates a null pointer exception.
It seems the logic is wrong since this will happen for any part of the ui having the Form as its parent. And/or there should be a test for whether cmp is null.
Not sure if it is relevant but this happens every time when clicking a command in the overflow menu. Which seems to prevent generating test cases for a UI using the Toolbar and the overflow menu.
In the following code,
the line
String componentName = cmp.getName();generates a null pointer exception.It seems the logic is wrong since this will happen for any part of the ui having the Form as its parent. And/or there should be a test for whether cmp is null.
Not sure if it is relevant but this happens every time when clicking a command in the overflow menu. Which seems to prevent generating test cases for a UI using the Toolbar and the overflow menu.