NullPointerException beim Aufruf von Berichte/Performance


#1

Hallo,

leider erscheint beim Aufruf von Berichte/Performance, Berichte/Berechnung, Asset Classes sowie Performance/Dividenden eine NullPointerException. Vermögensaufstellung, Diagramm, Bestände, Performance/Diagramm, Rendite, Wertpapier funktionieren ohne Probleme. Ich benutze PP erst seit kurzem, habe einige PDF’s importiert. Dieser Punkt hat gestern noch funktioniert.

— Nachtrag: LÖSUNG —
aus dem Import wurden neue Wertpapiere ohne Titel angelegt. nachdem ich alle Titel und Symbole nachgetragen habe, funktioniert nun alles wieder einwandfrei.

bin mir nicht sicher, ob die wenigen Informationen weiterhelfen, trotzdem der Stacktrace anbei:

<-- EXCEPTION beim Aufruf “Performance” -->
java.lang.NullPointerException
at java.lang.String$CaseInsensitiveComparator.compare(Unknown Source)
at java.lang.String$CaseInsensitiveComparator.compare(Unknown Source)
at java.lang.String.compareToIgnoreCase(Unknown Source)
at name.abuchen.portfolio.snapshot.ClientPerformanceSnapshot.lambda$8(ClientPerformanceSnapshot.java:393)
at java.util.TimSort.countRunAndMakeAscending(Unknown Source)
at java.util.TimSort.sort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at java.util.ArrayList.sort(Unknown Source)
at java.util.stream.SortedOps$RefSortingSink.end(Unknown Source)
at java.util.stream.Sink$ChainedReference.end(Unknown Source)
at java.util.stream.Sink$ChainedReference.end(Unknown Source)
at java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
at java.util.stream.AbstractPipeline.evaluate(Unknown Source)
at java.util.stream.ReferencePipeline.collect(Unknown Source)
at name.abuchen.portfolio.snapshot.ClientPerformanceSnapshot.addEarnings(ClientPerformanceSnapshot.java:394)
at name.abuchen.portfolio.snapshot.ClientPerformanceSnapshot.calculate(ClientPerformanceSnapshot.java:230)
at name.abuchen.portfolio.snapshot.ClientPerformanceSnapshot.(ClientPerformanceSnapshot.java:130)
at name.abuchen.portfolio.snapshot.PerformanceIndex.getClientPerformanceSnapshot(PerformanceIndex.java:237)
at name.abuchen.portfolio.ui.views.dashboard.WidgetFactory.lambda$12(WidgetFactory.java:35)
at name.abuchen.portfolio.ui.views.dashboard.IndicatorWidget.update(IndicatorWidget.java:130)
at name.abuchen.portfolio.ui.views.dashboard.DashboardView.updateWidgets(DashboardView.java:418)
at name.abuchen.portfolio.ui.views.dashboard.DashboardView.selectDashboard(DashboardView.java:439)
at name.abuchen.portfolio.ui.views.dashboard.DashboardView.createBody(DashboardView.java:255)
at name.abuchen.portfolio.ui.AbstractFinanceView.createViewControl(AbstractFinanceView.java:108)
at name.abuchen.portfolio.ui.PortfolioPart.createView(PortfolioPart.java:535)
at name.abuchen.portfolio.ui.PortfolioPart.activateView(PortfolioPart.java:514)
at name.abuchen.portfolio.ui.ClientEditorSidebar$ActivateViewAction.run(ClientEditorSidebar.java:65)
at name.abuchen.portfolio.ui.Sidebar.select(Sidebar.java:266)
at name.abuchen.portfolio.ui.Sidebar$Item$2.mouseDown(Sidebar.java:454)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:193)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4418)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4236)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3824)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:161)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
<-- END -->

<-- EXCEPTION beim Aufruf "Dividenden -->
java.lang.NullPointerException
at java.lang.String$CaseInsensitiveComparator.compare(Unknown Source)
at java.lang.String$CaseInsensitiveComparator.compare(Unknown Source)
at java.lang.String.compareToIgnoreCase(Unknown Source)
at name.abuchen.portfolio.ui.views.dividends.DividendsMatrixTab.lambda$2(DividendsMatrixTab.java:177)
at name.abuchen.portfolio.ui.util.viewers.ColumnViewerSorter$ViewerSorter.compare(ColumnViewerSorter.java:348)
at org.eclipse.jface.viewers.ViewerComparator.lambda$0(ViewerComparator.java:205)
at java.util.TimSort.countRunAndMakeAscending(Unknown Source)
at java.util.TimSort.sort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at org.eclipse.jface.viewers.ViewerComparator.sort(ViewerComparator.java:205)
at org.eclipse.jface.viewers.StructuredViewer.getSortedChildren(StructuredViewer.java:1088)
at org.eclipse.jface.viewers.AbstractTableViewer.internalRefreshAll(AbstractTableViewer.java:666)
at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:614)
at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:606)
at org.eclipse.jface.viewers.AbstractTableViewer.lambda$0(AbstractTableViewer.java:568)
at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1458)
at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1419)
at org.eclipse.jface.viewers.AbstractTableViewer.inputChanged(AbstractTableViewer.java:568)
at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:286)
at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1696)
at name.abuchen.portfolio.ui.views.dividends.DividendsMatrixTab.createControl(DividendsMatrixTab.java:104)
at name.abuchen.portfolio.ui.views.dividends.DividendsView.createTab(DividendsView.java:153)
at name.abuchen.portfolio.ui.views.dividends.DividendsView.createBody(DividendsView.java:135)
at name.abuchen.portfolio.ui.AbstractFinanceView.createViewControl(AbstractFinanceView.java:108)
at name.abuchen.portfolio.ui.PortfolioPart.createView(PortfolioPart.java:535)
at name.abuchen.portfolio.ui.PortfolioPart.activateView(PortfolioPart.java:514)
at name.abuchen.portfolio.ui.ClientEditorSidebar$ActivateViewAction.run(ClientEditorSidebar.java:65)
at name.abuchen.portfolio.ui.Sidebar.select(Sidebar.java:266)
at name.abuchen.portfolio.ui.Sidebar$Item$2.mouseDown(Sidebar.java:454)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:193)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4418)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4236)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3824)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:161)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
<-- END -->

<-- EXCEPTION bei Aufruf Asset Classes -->
java.lang.NullPointerException
org.eclipse.e4.core.di.InjectionException: java.lang.NullPointerException
at org.eclipse.e4.core.internal.di.ConstructorRequestor.execute(ConstructorRequestor.java:52)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:373)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:308)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:186)
at name.abuchen.portfolio.ui.AbstractFinanceView.make(AbstractFinanceView.java:197)
at name.abuchen.portfolio.ui.views.taxonomy.TaxonomyView.init(TaxonomyView.java:72)
at name.abuchen.portfolio.ui.PortfolioPart.createView(PortfolioPart.java:534)
at name.abuchen.portfolio.ui.PortfolioPart.activateView(PortfolioPart.java:514)
at name.abuchen.portfolio.ui.ClientEditorSidebar$ActivateViewAction.run(ClientEditorSidebar.java:65)
at name.abuchen.portfolio.ui.Sidebar.select(Sidebar.java:266)
at name.abuchen.portfolio.ui.Sidebar$Item$2.mouseDown(Sidebar.java:454)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:193)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4418)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4236)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3824)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.start(E4Application.java:161)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
Caused by: java.lang.NullPointerException
at name.abuchen.portfolio.ui.views.taxonomy.TaxonomyModel.lambda$2(TaxonomyModel.java:165)
at java.util.TimSort.countRunAndMakeAscending(Unknown Source)
at java.util.TimSort.sort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at java.util.ArrayList.sort(Unknown Source)
at java.util.Collections.sort(Unknown Source)
at name.abuchen.portfolio.ui.views.taxonomy.TaxonomyModel.addUnassigned(TaxonomyModel.java:164)
at name.abuchen.portfolio.ui.views.taxonomy.TaxonomyModel.(TaxonomyModel.java:117)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.eclipse.e4.core.internal.di.ConstructorRequestor.execute(ConstructorRequestor.java:40)
… 33 more
<–END–>

VG
SVEN


#2

In der Tat ist das das Problem. Ein Wertpapier muss zwingend einen Wertpapiernamen haben. Die sollte der Import natürlich so nicht anlegen. Wie hast Du die Wertpapiere denn importiert? CSV? PDF?