-
Bug
-
Resolution: Done
-
Major
-
3.3.0.Beta1
-
None
Steps to reproduce:
- Run BrowserSim on Linux
- Remove all characters from the address bar and press Enter
Actual result:
BrowserSim closes, and the following exception is printed to the console:
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(String.java:694) at org.eclipse.swt.browser.WebKit.setUrl(WebKit.java:1300) at org.eclipse.swt.browser.Browser.setUrl(Browser.java:1061) at org.jboss.tools.vpe.browsersim.browser.AbstractWebKitBrowser.setUrl(AbstractWebKitBrowser.java:30) at org.eclipse.swt.browser.Browser.setUrl(Browser.java:1029) at org.jboss.tools.vpe.browsersim.ui.BrowserSim$ControlHandlerImpl.goToAddress(BrowserSim.java:540) at org.jboss.tools.vpe.browsersim.ui.skin.NativeSkin$1.handleEvent(NativeSkin.java:128) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209) at org.jboss.tools.vpe.browsersim.ui.BrowserSim.main(BrowserSim.java:98)