Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-1286

NPE when setting an invalid number in Amount box

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 1.1.0.RC1
    • Component/s: GWT
    • Labels:
      None

      Description

      I see the following error when creating an expense and entering text in the amount box. It doesn't cause any problems though.

      Caused by: java.lang.NullPointerException: null at com.google.gwt.requestfactory.client.impl.RecordJsoImpl$.set$(RecordJsoImpl.java:322) at com.google.gwt.requestfactory.client.impl.DeltaValueStoreJsonImpl.set(DeltaValueStoreJsonImpl.java:291) at com.google.gwt.requestfactory.client.impl.RecordImpl.set(RecordImpl.java:91) at com.springsource.extrack.gwt.request.ExpenseRecordImpl.setAmount(ExpenseRecordImpl.java:118) at com.springsource.extrack.gwt.scaffold.generated.ExpenseEditView_EditorSupport_Impl$4.onValueChange(ExpenseEditView_EditorSupport_Impl.java:48) at com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java:128) at com.google.gwt.event.logical.shared.ValueChangeEvent.dispatch(ValueChangeEvent.java:1) at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.fireEvent(HandlerManager.java:78) at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.access$1(HandlerManager.java:55) at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:208) at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:83) at com.google.gwt.event.logical.shared.ValueChangeEvent.fire(ValueChangeEvent.java:43) at com.google.gwt.user.client.ui.ValueBoxBase$1.onChange(ValueBoxBase.java:112) at com.google.gwt.event.dom.client.ChangeEvent.dispatch(ChangeEvent.java:54) at com.google.gwt.event.dom.client.ChangeEvent.dispatch(ChangeEvent.java:1) at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.fireEvent(HandlerManager.java:78) at com.google.gwt.event.shared.HandlerManager$HandlerRegistry.access$1(HandlerManager.java:55) at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:208) at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:83) at com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java:116) at com.google.gwt.user.client.ui.Widget.onBrowserEvent(Widget.java:131) at com.google.gwt.user.client.ui.ValueBoxBase.onBrowserEvent(ValueBoxBase.java:233) at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1308) at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1264) at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:126) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:552) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214) at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352) at java.lang.Thread.run(Thread.java:619)

        Attachments

          Activity

            People

            Assignee:
            rjrjr@google.com Ray Ryan
            Reporter:
            rjrjr@google.com Ray Ryan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.5d
                0.5d
                Remaining:
                Remaining Estimate - 0.5d
                0.5d
                Logged:
                Time Spent - Not Specified
                Not Specified