Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ErrorDialog error #106

Open
thomthom opened this issue Nov 6, 2016 · 0 comments
Open

ErrorDialog error #106

thomthom opened this issue Nov 6, 2016 · 0 comments
Labels
0.10.0 bug Something isn't working minor

Comments

@thomthom
Copy link
Owner

thomthom commented Nov 6, 2016

Original report by me.


Reported by @duanekemp

#<NoMethodError: undefined method `[]' for nil:NilClass>
C:/Users/Duane/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/TT_QuadFaceTools/vendor/error-handler/error_reporter.rb:329:in `block in create_dialog'
C:/Users/Duane/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/TT_QuadFaceTools/vendor/error-handler/error_reporter.rb:352:in `call'
C:/Users/Duane/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/TT_QuadFaceTools/vendor/error-handler/error_reporter.rb:352:in `block in trigger_event'
C:/Users/Duane/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/TT_QuadFaceTools/vendor/error-handler/error_reporter.rb:348:in `each'
C:/Users/Duane/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/TT_QuadFaceTools/vendor/error-handler/error_reporter.rb:348:in `trigger_event'
C:/Users/Duane/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/TT_QuadFaceTools/vendor/error-handler/error_reporter.rb:306:in `block in create_dialog'
SketchUp:1:in `call'

Related code is:

      on("dialog_ready") { |dialog, data|
        section = preference_key
        user_data = {
          :user_name => Sketchup.read_default(section, "name",  ""),
          :user_email => Sketchup.read_default(section, "email", "")
        }
        call(dialog, "restore_form", user_data)
        dialog = data = nil
      }

For some reason data in the callback from the dialog is nil.

Not sure what might cause that...

@thomthom thomthom added minor bug Something isn't working 0.10.0 labels Jan 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.10.0 bug Something isn't working minor
Projects
None yet
Development

No branches or pull requests

1 participant