Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-1509

Error Message for errors happening in getter contains no usable information

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-6
    • 1.0-RC-1
    • None
    • None
    • Groovy JSR-6

    Description

      class DBTblRef {

      def props = [type :Globals.TYPE_TBL_REF,
      name :Globals.STR_RENAME_ME,
      widgetName :Globals.tblRefWidget,
      table :"Nothing selected"
      ]

      def setProps(map)

      { props = map }

      def getProps()

      { // actualize the reference props.table = selectedTableTreePath.getLastPathComponent().toString() return props }

      }

      If my selectedTableTreePath is null, then the error message just tells me,

      Cannot read property: props

      The error message does not mention the root cause. Can this be changed to a valuable output?

      Attachments

        Issue Links

          Activity

            People

              blackdrag Jochen Theodorou
              uwe.hartl@gmx.net Uwe Hartl
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: