Author Topic: NPE pour l'ajout d'un dépôt  (Read 1347 times)

0 Members and 1 Guest are viewing this topic.

Offline roptat

  • VIP
  • Jr. Member
  • *
  • Posts: 13
    • View Profile
NPE pour l'ajout d'un dépôt
« on: August 03, 2024, 09:14:54 »
Bonjour,

J'ai encore une NPE après la mise à jour d'aujourd'hui (Ancestris 13, java 17). Lorsque je sélectionne un événement sans source, je rajoute une image pour la source, puis je clique sur le bouton « Indique le dépôt de la source ». Rien ne se passe et j'ai un sens interdit en bas à droite avec :


java.lang.NullPointerException: Cannot invoke "genj.gedcom.Entity.getProperty(String)" because the return value of "ancestris.modules.editors.standard.tools.SourceWrapper.getTargetSource()" is null
   at ancestris.modules.editors.standard.tools.RepoChooser.getMainRepository(RepoChooser.java:251)
   at ancestris.modules.editors.standard.tools.RepoChooser.updateMainRepositoryName(RepoChooser.java:1264)
   at ancestris.modules.editors.standard.tools.RepoChooser.<init>(RepoChooser.java:119)
   at ancestris.modules.editors.standard.IndiPanel.chooseRepository(IndiPanel.java:4103)
   at ancestris.modules.editors.standard.IndiPanel.repoEditButtonActionPerformed(IndiPanel.java:2032)
   at ancestris.modules.editors.standard.IndiPanel$67.actionPerformed(IndiPanel.java:1603)
   at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
   at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
   at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
   at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
   at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
   at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
   at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
   at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
   at java.desktop/java.awt.Component.processEvent(Unknown Source)
   at java.desktop/java.awt.Container.processEvent(Unknown Source)
   at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
   at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
   at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
   at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
   at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
   at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
   at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
   at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
   at java.desktop/java.awt.Component.dispatchEvent(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(Unknown Source)
   at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
   at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
   at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
   at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
   at java.base/java.security.AccessController.doPrivileged(Unknown Source)
   at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
   at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
[catch] at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
   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)

Offline Zurga

  • VIP
  • Supernatural Member
  • *
  • Posts: 4 311
    • View Profile
Re: NPE pour l'ajout d'un dépôt
« Reply #1 on: August 03, 2024, 20:13:11 »
On va regarder.

Zurga

Offline Zurga

  • VIP
  • Supernatural Member
  • *
  • Posts: 4 311
    • View Profile
Re: NPE pour l'ajout d'un dépôt
« Reply #2 on: August 05, 2024, 16:16:23 »
Cela devrait être corrigé demain dans la version 13.

Offline roptat

  • VIP
  • Jr. Member
  • *
  • Posts: 13
    • View Profile
Re: NPE pour l'ajout d'un dépôt
« Reply #3 on: August 14, 2024, 17:58:49 »
Bonjour,

je reviens à la charge, car j'ai toujours un problème à l'ajout du dépôt d'une source. J'imagine que la cause est différente cette fois. Là, j'ajoute une image, je met un titre à l'image et à la source et j'indique le dépôt. L'erreur arrive au moment où je clique sur un dépôt existant dans la liste :


java.lang.NullPointerException: Cannot invoke "genj.gedcom.Source.getDisplayTitle(boolean)" because "entry" is null
   at ancestris.modules.editors.standard.tools.RepoChooser$SourceListCellRenderer.getListCellRendererComponent(RepoChooser.java:1277)
   at java.desktop/javax.swing.plaf.basic.BasicListUI.updateLayoutState(Unknown Source)
   at java.desktop/javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(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 java.desktop/javax.swing.JComponent.paint(Unknown Source)
   at java.desktop/javax.swing.JComponent.paintToOffscreen(Unknown Source)
   at java.desktop/javax.swing.BufferStrategyPaintManager.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(Unknown Source)
   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(Unknown Source)
   at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
   at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
[catch] at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
   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(Unknown Source)
   at java.desktop/java.awt.WaitDispatchSupport.enter(Unknown Source)
   at java.desktop/java.awt.Dialog.show(Unknown Source)
   at org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:1074)
   at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:1124)
   at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:1096)
   at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:106)
   at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.doEventAccess(NbMutexEventProvider.java:123)
   at org.netbeans.modules.openide.util.NbMutexEventProvider$Event.readAccess(NbMutexEventProvider.java:77)
   at org.netbeans.modules.openide.util.LazyMutexImplementation.readAccess(LazyMutexImplementation.java:71)
   at org.openide.util.Mutex.readAccess(Mutex.java:199)
   at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:1081)
   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 ancestris.util.swing.DialogManager$ADialog.show(DialogManager.java:374)
   at ancestris.modules.editors.standard.IndiPanel.chooseRepository(IndiPanel.java:4105)
   at ancestris.modules.editors.standard.IndiPanel.repoEditButtonActionPerformed(IndiPanel.java:2032)
   at ancestris.modules.editors.standard.IndiPanel$67.actionPerformed(IndiPanel.java:1603)
   at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
   at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
   at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
   at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
   at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
   at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
   at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
   at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
   at java.desktop/java.awt.Component.processEvent(Unknown Source)
   at java.desktop/java.awt.Container.processEvent(Unknown Source)
   at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
   at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
   at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
   at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
   at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
   at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
   at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
   at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
   at java.desktop/java.awt.Component.dispatchEvent(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(Unknown Source)
   at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
   at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
   at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
   at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
   at java.base/java.security.AccessController.doPrivileged(Unknown Source)
   at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
   at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
   at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
   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)