Skip to content

Commit 10aed9c

Browse files
committed
cleaning up weird DetailPanel exception
1 parent c49b208 commit 10aed9c

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

app/src/processing/app/contrib/ListPanel.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -336,10 +336,15 @@ private void configureStatusColumnLabel(JLabel label, Contribution contribution)
336336
Icon icon = null;
337337
label.setFont(ManagerFrame.NORMAL_PLAIN);
338338
StatusPanelDetail detail = detailForContrib.get(contribution);
339-
// if (detail == null) {
340-
// System.out.println("no panel for " + contribution.name + " inside " + contributionTab.contribType);
341-
// }
342-
if (detail.updateInProgress || detail.installInProgress) {
339+
340+
/*
341+
if (detail != null) {
342+
System.err.println("ListPanel.configureStatusColumnLabel() no panel for " + contribution);
343+
return;
344+
}
345+
*/
346+
347+
if (detail != null && (detail.updateInProgress || detail.installInProgress)) {
343348
// Display "loading" icon if download/install in progress
344349
icon = downloadingIcon;
345350
} else if (contribution.isInstalled()) {

todo.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ _ batik and ant have both broken the build when old versions were removed
9292

9393

9494
contribs
95+
_ ListPanel.configureStatusColumnLabel() getting null DetailPanel objects
96+
_ seems to be out of sync/unavailable data based on more recent contrib changes?
9597
_ several "Could not find a matching .properties file" with clocks pdex
9698
_ examples window is per-Mode, but that doesn't seem helpful
9799
_ just like sketchbook, you can open one from the other

0 commit comments

Comments
 (0)