NPE when opening credits in main screen
issueid=500 11-06-2011 08:16 PM
Junior Member
Number of reported issues by ancow: 2
NPE when opening credits in main screen
An NPE occurrs when trying to open the credits from the main screen, but not ingame.

Steps to reproduce:
  1. Start JADE, click through any messages/warnings until you are on the main screen (where you can start a new character, etc.)
  2. Click on Help->Credits in the menu.
  3. The following error message pops up:

Code:
An unexpected JADE error occurred.
Please see the stack trace for details.

java.lang.NullPointerException
	at de.adom.jade.ui.ascii.HelpMenu$3.actionPerformedImpl(SourceFile:93)
	at de.adom.jade.ui.VerboseActionListener.actionPerformed(SourceFile:40)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850)
	at java.awt.Component.processMouseEvent(Component.java:6288)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
	at java.awt.Component.processEvent(Component.java:6053)
	at java.awt.Container.processEvent(Container.java:2041)
	at java.awt.Component.dispatchEventImpl(Component.java:4651)
	at java.awt.Container.dispatchEventImpl(Container.java:2099)
	at java.awt.Component.dispatchEvent(Component.java:4481)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
	at java.awt.Container.dispatchEventImpl(Container.java:2085)
	at java.awt.Window.dispatchEventImpl(Window.java:2478)
	at java.awt.Component.dispatchEvent(Component.java:4481)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)
	at java.awt.EventQueue.access$000(EventQueue.java:84)
	at java.awt.EventQueue$1.run(EventQueue.java:602)
	at java.awt.EventQueue$1.run(EventQueue.java:600)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
	at java.awt.EventQueue$2.run(EventQueue.java:616)
	at java.awt.EventQueue$2.run(EventQueue.java:614)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

--- System information: ---

jnlpx.remove: 'false'
file.encoding.pkg: 'sun.io'
java.home: '/usr/lib/jvm/java-6-sun-1.6.0.26/jre'
deployment.security.askgrantdialog.notinca: 'true'
deployment.repository.askdownloaddialog.show: 'true'
deployment.system.security.trusted.jssecerts: '/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/security/trusted.jssecerts'
deployment.console.startup.mode: 'HIDE'
jnlpx.offline: 'false'
java.endorsed.dirs: '/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/endorsed'
jnlpx.relaunch: 'true'
deployment.security.sandbox.jnlp.enhanced: 'true'
deployment.system.security.blacklist: '/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/security/blacklist'
deployment.javaws.concurrentDownloads: '4'
deployment.security.sandbox.awtwarningwindow: 'true'
sun.os.patch.level: 'unknown'
java.vendor.url: 'http://java.sun.com/'
deployment.security.blacklist.check: 'true'
deployment.user.security.trusted.jssecacerts: '/home/reini/.java/deployment/security/trusted.jssecacerts'
deployment.javaws.home.jnlp.url: 'http://java.sun.com/products/javawebstart'
java.version: '1.6.0_26'
deployment.javapi.trace.filename: ''
deployment.max.output.file.size: '10'
java.vendor.url.bug: 'http://java.sun.com/cgi-bin/bugreport.cgi'
deployment.user.security.trusted.cacerts: '/home/reini/.java/deployment/security/trusted.cacerts'
java.protocol.handler.pkgs: 'com.sun.javaws.net.protocol|com.sun.deploy.net.protocol'
javaplugin.proxy.config.type: 'direct'
deployment.user.tmp: '/home/reini/.java/deployment/tmp'
user.name: 'reini'
deployment.user.logdir: '/home/reini/.java/deployment/log'
sun.io.unicode.encoding: 'UnicodeLittle'
deployment.browser.path: '/usr/bin/firefox'
deployment.cache.max.size: '-1'
sun.jnu.encoding: 'UTF-8'
java.runtime.name: 'Java(TM) SE Runtime Environment'
jnlpx.home: '/usr/lib/jvm/java-6-sun-1.6.0.26/jre/bin'
deployment.system.security.trusted.publishers: '/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/security/trusted.publishers'
java.specification.name: 'Java Platform API Specification'
deployment.security.mixcode: 'ENABLE'
user.timezone: 'Europe/Berlin'
deployment.security.SSLv3: 'true'
deployment.proxy.override.hosts: ''
path.separator: ':'
deployment.javaws.installURL: 'http://java.sun.com/products/autodl/j2se'
deployment.javaws.ssv.enabled: 'true'
jnlpx.heapsize: '-1,805306368'
file.encoding: 'UTF-8'
deployment.user.security.trusted.publishers: '/home/reini/.java/deployment/security/trusted.publishers'
sun.java.command: 'com.sun.javaws.Main http://www.adom.de/jade/downloads/javawebstart/0.2.0/jade.jnlp'
deployment.javapi.log.filename: ''
deployment.user.cachedir: '/home/reini/.java/deployment/cache'
deployment.browser.args: '-remote openURL(%u,new-window)'
deployment.javaws.cache.update: 'false'
deployment.security.validation.crl: 'false'
java.io.tmpdir: '/tmp'
deployment.version: '6.0'
sun.awt.warmup: 'true'
user.language: 'de'
line.separator: '
'
deployment.user.security.policy: 'file://home/reini/.java/deployment/security/java.policy'
jnlpx.jvm: '/usr/lib/jvm/java-6-sun-1.6.0.26/jre/bin/java'
java.vm.info: 'mixed mode'
java.vm.specification.name: 'Java Virtual Machine Specification'
deployment.max.output.files: '5'
deployment.update.mime.types: 'true'
deployment.security.browser.keystore.use: 'true'
deployment.security.jsse.hostmismatch.warning: 'true'
deployment.system.security.cacerts: '/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/security/cacerts'
deployment.proxy.type: '3'
deployment.user.security.trusted.jssecerts: '/home/reini/.java/deployment/security/trusted.jssecerts'
deployment.security.password.cache: 'true'
deployment.javaws.shortcut: 'ASK_IF_HINTED'
java.awt.printerjob: 'sun.print.PSPrinterJob'
deployment.security.https.warning.show: 'false'
deployment.javaws.autodownload: 'ALWAYS'
deployment.proxy.bypass.local: 'false'
http.auth.serializeRequests: 'true'
deployment.javaws.logFileName: ''
os.name: 'Linux'
java.specification.vendor: 'Sun Microsystems Inc.'
deployment.javaws.uninstall.shortcut: 'false'
deployment.system.security.jssecacerts: '/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/security/jssecacerts'
deployment.system.security.oldcacerts: '/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/security/cacerts'
java.vm.name: 'Java HotSpot(TM) 64-Bit Server VM'
java.quick.starter: 'false'
deployment.security.askgrantdialog.show: 'true'
java.library.path: '/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/amd64/server:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/amd64:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib'
java.class.version: '50.0'
deployment.control.panel.log: 'false'
deployment.system.security.trusted.clientauthcerts: '/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/security/trusted.clientcerts'
deployment.trace: 'false'
deployment.security.clientauth.keystore.auto: 'true'
deployment.security.validation.ocsp: 'false'
deployment.javapi.cache.update: 'true'
deployment.cache.jarcompression: '0'
deployment.system.security.trusted.libraries: '/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/security/trusted.libraries'
deployment.security.validation.ocsp.publisher: 'false'
deployment.javaws.update.timeout: '1500'
sun.boot.library.path: '/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/amd64'
sun.management.compiler: 'HotSpot 64-Bit Tiered Compilers'
java.awt.graphicsenv: 'sun.awt.X11GraphicsEnvironment'
deployment.user.extdir: '/home/reini/.java/deployment/ext'
deployment.system.security.trusted.certs: '/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/security/trusted.certs'
deployment.system.security.oldjssecacerts: '/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/security/jssecacerts'
deployment.proxy.same: 'false'
deployment.security.authenticator: 'true'
deployment.javaws.traceFileName: ''
deployment.user.security.trusted.clientauthcerts: '/home/reini/.java/deployment/security/trusted.clientcerts'
java.vm.specification.version: '1.0'
deployment.user.security.blacklist: '/home/reini/.java/deployment/security/blacklist'
sun.cpu.isalist: ''
java.ext.dirs: '/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/ext:/usr/java/packages/lib/ext'
os.version: '3.0.0-1-amd64'
user.home: '/home/reini'
deployment.user.security.trusted.certs: '/home/reini/.java/deployment/security/trusted.certs'
trustProxy: 'true'
java.vm.vendor: 'Sun Microsystems Inc.'
deployment.javapi.lifecycle.exception: 'false'
user.dir: '/home/reini/Dokumente'
deployment.cache.enabled: 'true'
sun.cpu.endian: 'little'
jnlpx.splashport: '46375'
deployment.security.notinca.warning: 'true'
deployment.javaws.splash.index: '/home/reini/.java/deployment/cache/6.0/splash/splash.xml'
jnlpx.vmargs: '-Xmx768m'
java.vm.version: '20.1-b02'
deployment.security.trusted.policy: ''
java.class.path: '/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/deploy.jar'
os.arch: 'amd64'
deployment.javapi.stop.timeout: '200'
deployment.mime.types.use.default: 'true'
deployment.security.pretrust.list: 'true'
java.rmi.server.RMIClassLoaderSpi: 'com.sun.jnlp.JNLPRMIClassLoaderSpi'
deployment.capture.mime.types: 'false'
javawebstart.version: 'javaws-1.6.0_26'
deployment.security.TLSv1: 'true'
sun.java.launcher: 'SUN_STANDARD'
deployment.jpi.mode.new: 'true'
deployment.javaws.muffin.max: '256'
deployment.log: 'false'
https.protocols: 'TLSv1,SSLv3'
...
The NPE has been 100% reproducible from the main screen so far, and hasn't occurred at all ingame.
Issue Details
Issue Number 500
Project ADOM II (formerly known as JADE)
Category UI
Status Fixed
Priority 10 - Lowest
Affected Version JADE 0.2.0
Fixed Version JADE 0.2.1
Users able to reproduce bug 1
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)




11-07-2011 01:52 AM
Senior Member
Same thing happens to me using Java 7 under Windows 7 x64.

11-07-2011 04:31 AM
The Creator
Fixed for JADE 0.2.1. Please send your real name to creator(at)ancientdomainsofmystery.com for it to be included in the credits. (If you were already asked to do so you can ignore this message. Please include a reference to the bug or RFE you are credited for.)

+ Reply