Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#295 closed defect (fixed)

NPE on setEqkRupture in AS 2008

Reported by: Kevin Milner Owned by: Peter Powers
Priority: major Milestone: OpenSHA 1.2
Component: sha Version:
Keywords: Cc:

Description

Steps to reproduce: Calculate a hazard curve with AS_2008, or run GeneralIMR_ParameterTests, or just call setEqkRupture in AS 2008

Other info: (PLEASE FILL IN)

Application: HazardCurveServer?
Version: 1.1.4
Bulid Type: Development
Java Version: 1.6.0_21 (Sun Microsystems Inc.)
Operating System: Windows 7 (arch: amd64, version: 6.1)

Exception:

java.lang.NullPointerException
	at org.opensha.sha.imr.attenRelImpl.AS_2008_AttenRel.setPropagationEffectParams(AS_2008_AttenRel.java:264)
	at org.opensha.sha.imr.attenRelImpl.AS_2008_AttenRel.setEqkRupture(AS_2008_AttenRel.java:246)
	at org.opensha.sha.calc.HazardCurveCalculator.getHazardCurve(HazardCurveCalculator.java:340)
	at org.opensha.sha.gui.HazardCurveServerModeApplication.computeHazardCurve(HazardCurveServerModeApplication.java:1358)
	at org.opensha.sha.gui.HazardCurveServerModeApplication.run(HazardCurveServerModeApplication.java:933)
	at java.lang.Thread.run(Thread.java:619)

Metadata:

Cacluation Type = Probabilistic

IMR Param List:


IMR = Abrahamson & Silva (2008); Gaussian Truncation = None; Tectonic Region = Active Shallow Crust; Component = Average Horizontal (GMRotI50); Std Dev Type = Total

Site Param List:


Longitude = -118.243; Latitude = 34.053; Vs30 = 760.0; Vs30 Type = Inferred; Depth 1.0 km/sec = 100.0

IMT Param List:


IMT = SA; SA Period = 1.0; SA Damping = 5.0

Forecast Param List:


Eqk Rup Forecast = USGS/CGS 1996 Adj. Cal. ERF; Fault Model = Frankel's; GR Fraction on B Faults = 0.5; Rupture Offset = 10.0; Background Seismicity = Exclude

TimeSpan? Param List:


Duration = 50.0

Calculation Settings:


Maximum Distanc

Change History (3)

comment:1 Changed 13 years ago by Kevin Milner

Same problem with McVerryetal_2000_AttenRel:

java.lang.NullPointerException
	at org.opensha.sha.imr.attenRelImpl.McVerryetal_2000_AttenRel.setPropagationEffectParams(McVerryetal_2000_AttenRel.java:310)
	at org.opensha.sha.imr.attenRelImpl.McVerryetal_2000_AttenRel.setEqkRupture(McVerryetal_2000_AttenRel.java:258)
	at org.opensha.sha.imr.attenRelImpl.test.GeneralIMR_ParameterTests.testSetSiteRup(GeneralIMR_ParameterTests.java:235)

comment:2 Changed 13 years ago by Kevin Milner

Resolution: fixed
Status: newclosed

I believe this was fixed by Peter, closing (feel free to reopen if I'm incorrect).

comment:3 Changed 13 years ago by Peter Powers

The McVerry? and AS2008 NPE's resulted from improperly referenced PropEffect? fields (local private vs parent protected; the parent should always be used).

Fixed in [7914] and [7915]

Note: See TracTickets for help on using tickets.