Bug Issue: NullPointerException in Background editor


Pages: 1

irock

  • Master Stencyler
  • *
December 17, 2020, 01:38:04 pm
I created a new background resource, imported an image for it, opened an existing background resource to reference it, changed the "repeat background" property in the new background, and was switching to the reference background when this error happened over and over again.

Full logs attached.
Code: [Select]
java.lang.NullPointerException
at stencyl.sw.util.gfx.ImageUtil.downsize(ImageUtil.java:319)
at stencyl.sw.editors.animation.AnimationEditor$CustomRenderer.getListCellRendererComponent(AnimationEditor.java:608)
at java.desktop/javax.swing.plaf.basic.BasicListUI.paintCell(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicListUI.paintImpl(Unknown Source)
at java.desktop/javax.swing.plaf.basic.BasicListUI.paint(Unknown Source)
at java.desktop/javax.swing.plaf.ComponentUI.update(Unknown Source)
at java.desktop/javax.swing.JComponent.paintComponent(Unknown Source)
at stencyl.sw.editors.animation.AnimationEditor.paintComponent(AnimationEditor.java:261)
at java.desktop/javax.swing.JComponent.paint(Unknown Source)
at java.desktop/javax.swing.JComponent.paintToOffscreen(Unknown Source)
at java.desktop/javax.swing.RepaintManager$PaintManager.paintDoubleBufferedImpl(Unknown Source)
at java.desktop/javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
at java.desktop/javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
at java.desktop/javax.swing.RepaintManager.paint(Unknown Source)
at java.desktop/javax.swing.JComponent._paintImmediately(Unknown Source)
at java.desktop/javax.swing.JComponent.paintImmediately(Unknown Source)
at java.desktop/javax.swing.RepaintManager$4.run(Unknown Source)
at java.desktop/javax.swing.RepaintManager$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at java.desktop/javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at java.desktop/javax.swing.RepaintManager.prePaintDirtyRegions(Unknown Source)
at java.desktop/javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source)
at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.WaitDispatchSupport$2.run(Unknown Source)
at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.desktop/java.awt.WaitDispatchSupport.enter(Unknown Source)
at java.desktop/java.awt.Dialog.show(Unknown Source)
at java.desktop/java.awt.Component.show(Unknown Source)
at java.desktop/java.awt.Component.setVisible(Unknown Source)
at java.desktop/java.awt.Window.setVisible(Unknown Source)
at java.desktop/java.awt.Dialog.setVisible(Unknown Source)
at stencyl.sw.util.dg.ExceptionDialog.<init>(ExceptionDialog.java:121)
at stencyl.sw.util.dg.ExceptionDialog.showExceptionDialog(ExceptionDialog.java:59)
at stencyl.sw.util.dg.ExceptionDialog.showUncaughtExceptionDialog(ExceptionDialog.java:65)
at stencyl.sw.UncaughtExceptionHandler.showErrorMessage(UncaughtExceptionHandler.java:126)
at stencyl.sw.UncaughtExceptionHandler.uncaughtException(UncaughtExceptionHandler.java:47)
at java.base/java.lang.ThreadGroup.uncaughtException(Unknown Source)
at java.base/java.lang.ThreadGroup.uncaughtException(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.processException(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.WaitDispatchSupport$2.run(Unknown Source)
at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.desktop/java.awt.WaitDispatchSupport.enter(Unknown Source)
at java.desktop/java.awt.Dialog.show(Unknown Source)
at java.desktop/java.awt.Component.show(Unknown Source)
at java.desktop/java.awt.Component.setVisible(Unknown Source)
at java.desktop/java.awt.Window.setVisible(Unknown Source)
at java.desktop/java.awt.Dialog.setVisible(Unknown Source)
at stencyl.sw.util.dg.ExceptionDialog.<init>(ExceptionDialog.java:121)
at stencyl.sw.util.dg.ExceptionDialog.showExceptionDialog(ExceptionDialog.java:59)
at stencyl.sw.util.dg.ExceptionDialog.showUncaughtExceptionDialog(ExceptionDialog.java:65)
at stencyl.sw.UncaughtExceptionHandler.showErrorMessage(UncaughtExceptionHandler.java:126)
at stencyl.sw.UncaughtExceptionHandler.uncaughtException(UncaughtExceptionHandler.java:47)
at java.base/java.lang.ThreadGroup.uncaughtException(Unknown Source)
at java.base/java.lang.ThreadGroup.uncaughtException(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.processException(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)


New attachment added by irock - December 17, 2020, 01:38:15 pm


irock

  • Master Stencyler
  • *
December 27, 2020, 12:58:33 pm
I reproduced it on video:

https://www.youtube.com/watch?v=tLvBeuxSUrA

The error occurred after middle-click closing the resource's tab.


Pages: 1

Details

  • Reported
    December 17, 2020, 01:38:04 pm
  • Updated
    December 27, 2020, 12:58:33 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    New
  • Priority
    Normal
  • Version
    (none)
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Background Editor

Tags


Attachments

* 2020-12-17_10-48-49.log (414.11 kB - downloaded 12 times.)