Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Can't propagate exception from SC.ask BooleanCallback

    I had a button display a dialog using SC.ask with a BooleanCallback. I noticed nothing was happening so I ran the debugger. I followed it until I found an exception was being thrown that was preventing my code from ever running. I had no idea the exception was being thrown because it was getting swallowed somehow--no error popup or anything in the console/log. I wrote a test case below...

    Code:
    public void onModuleLoad() {
      SC.ask("asdf", new BooleanCallback() {
        @Override
        public void execute(Boolean value) {
          throw new NullPointerException();
        }
      });
    }
    SmartGWT Power 4.0 10-5-2013

    #2
    What browser is this?

    Dev mode, compiled mode or both?

    What version of GWT?

    Did you check the Eclipse console and Developer Console for errors?

    Comment


      #3
      Firefox 7
      Dev mode
      GWT 2.5.1
      Yes, checked both and the Firefox web console

      Comment


        #4
        Firefox 17ESR was recently end-of-lifed and the GWT team isn't testing anything that old anymore. Let us know if you see this in any supported browsers.

        Comment

        Working...
        X