java - Should I be worried about this error? -
this question has answer here:
- what nullpointerexception, , how fix it? 12 answers
i got error game still works. should worried? can provide coding cause error if needed.
error:
exception in thread "awt-eventqueue-0" java.lang.nullpointerexception @ main.gamepanel.paintcomponent(gamepanel.java:77) @ javax.swing.jcomponent.paint(unknown source) @ javax.swing.jcomponent.paintchildren(unknown source) @ javax.swing.jcomponent.paint(unknown source) @ javax.swing.jcomponent.paintchildren(unknown source) @ javax.swing.jcomponent.paint(unknown source) @ javax.swing.jlayeredpane.paint(unknown source) @ javax.swing.jcomponent.paintchildren(unknown source) @ javax.swing.jcomponent.painttooffscreen(unknown source) @ javax.swing.repaintmanager$paintmanager.paintdoublebuffered(unknown source) @ javax.swing.repaintmanager$paintmanager.paint(unknown source) @ javax.swing.repaintmanager.paint(unknown source) @ javax.swing.jcomponent.paint(unknown source) @ java.awt.graphicscallback$paintcallback.run(unknown source) @ sun.awt.sungraphicscallback.runonecomponent(unknown source) @ sun.awt.sungraphicscallback.runcomponents(unknown source) @ java.awt.container.paint(unknown source) @ java.awt.window.paint(unknown source) @ javax.swing.repaintmanager$4.run(unknown source) @ javax.swing.repaintmanager$4.run(unknown source) @ java.security.accesscontroller.doprivileged(native method) @ java.security.protectiondomain$1.dointersectionprivilege(unknown source) @ javax.swing.repaintmanager.paintdirtyregions(unknown source) @ javax.swing.repaintmanager.paintdirtyregions(unknown source) @ javax.swing.repaintmanager.prepaintdirtyregions(unknown source) @ javax.swing.repaintmanager.access$1300(unknown source) @ javax.swing.repaintmanager$processingrunnable.run(unknown source) @ java.awt.event.invocationevent.dispatch(unknown source) @ java.awt.eventqueue.dispatcheventimpl(unknown source) @ java.awt.eventqueue.access$500(unknown source) @ java.awt.eventqueue$3.run(unknown source) @ java.awt.eventqueue$3.run(unknown source) @ java.security.accesscontroller.doprivileged(native method) @ java.security.protectiondomain$1.dointersectionprivilege(unknown source) @ java.awt.eventqueue.dispatchevent(unknown source) @ java.awt.eventdispatchthread.pumponeeventforfilters(unknown source) @ java.awt.eventdispatchthread.pumpeventsforfilter(unknown source) @ java.awt.eventdispatchthread.pumpeventsforhierarchy(unknown source) @ java.awt.eventdispatchthread.pumpevents(unknown source) @ java.awt.eventdispatchthread.pumpevents(unknown source) @ java.awt.eventdispatchthread.run(unknown source)
of course, should worried. null pointer means variable supposed contain empty , used. in paintcomponent function might reflect on , feel of application.
Comments
Post a Comment