fixes various NPE related to selection while reloading database

This commit is contained in:
2026-04-10 08:11:38 +02:00
parent e4ba753f82
commit 17015f1bbc
6 changed files with 19 additions and 8 deletions

View File

@@ -124,7 +124,8 @@ public class StreamPainter extends TrackPainter{
protected void drawTx(Projection proj, Rectangle area, ITx tx, int concurrencyIndex, boolean highlighted ) {
// compute colors
Color[] transColor = waveCanvas.styleProvider.computeColor( tx.getGenerator().getName());
IWaveform generator = tx.getGenerator();
Color[] transColor = waveCanvas.styleProvider.computeColor( generator!=null?generator.getName():"unknown");
proj.setBackground(transColor[highlighted?1:0]);