Uploaded image for project: 'Ergo'
  1. Ergo
  2. ERGO-63

New attenuations can't be in external plugins

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.1.0
    • 4.0.0
    • Core

      The create scenario earthquake UI finds new attenuations in external plugins; however, when the attenuation coefficient initialization expects the coefficient file to be in the hazard plugin and throws a null pointer when it can't find it. This code needs to be generalized to use the plugin ID of the contributing plugin.

      at edu.illinois.ncsa.ergo.eq.hazard.util.DataUtil.getInputFileStream(DataUtil.java:168)
      at edu.illinois.ncsa.ergo.eq.hazard.util.DataUtil.getTableModel(DataUtil.java:200)
      at edu.illinois.ncsa.ergo.eq.hazard.attenuations.StandardAttenuation.readCoefficients(StandardAttenuation.java:151)
      at edu.illinois.ncsa.ergo.eq.hazard.attenuations.StandardAttenuation.initHazardOutputs(StandardAttenuation.java:355)
      at edu.illinois.ncsa.ergo.eq.hazard.attenuations.StandardAttenuation.getHazardOutputTypes(StandardAttenuation.java:395)
      at edu.illinois.ncsa.ergo.eq.hazard.ui.widgetbuilders.HazardAttenuationWidgetBuilder.setAttenuationModels(HazardAttenuationWidgetBuilder.java:174)
      at edu.illinois.ncsa.ergo.eq.hazard.ui.widgetbuilders.HazardAttenuationWidgetBuilder.modifyText(HazardAttenuationWidgetBuilder.java:96)
      at ncsa.eclipse.core.forms.fields.ModifyToSelectionAdapter.widgetSelected(ModifyToSelectionAdapter.java:18)

              ywkim Yong Wook Kim
              cnavarro Christopher Navarro
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 2 hours
                  2h
                  Remaining:
                  Remaining Estimate - 2 hours
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified