[BUG] Hardcoded null in ChannelTableNode will ALWAYS throw an exception #5171
Labels
bug
Something isn't working
Fix-Commited
Issue fixed and will be available in milestone
Internal-Issue-Created
An issue has been created in NextGen's internal issue tracker
RS-8538
triaged
Milestone
Describe the bug
See -
connect/client/src/com/mirth/connect/client/ui/ChannelTableNode.java
Lines 58 to 88 in e66d112
Line 58 sets
this.channelStatus = null;
then on line 85row[i++] = plugin.getTableData(channelStatus.getChannel());
will always throw an NPE.The solution is to change line 85 to
plugin.getTableData(groupStatus.getChannelGroup());
which will call the existing plugin methodcom.mirth.connect.plugins.ChannelColumnPlugin#getTableData(com.mirth.connect.model.ChannelGroup)
.To Reproduce
com.mirth.connect.plugins.ChannelColumnPlugin
or grab the one from https://github.com/jonbartels/mirth-connect-dashboard-countEnvironment (please complete the following information):
com.mirth.connect.client.ui.ChannelTableNode
exists. Dates back to 2016 and issue ["MIRTH-1243"] (Grouped Channels in Dashboard and Channel Listing #1243)Workaround(s)
Are there one or more workarounds for this issue currently? - No.
Additional context
Fixing this is required to make #5152 implementable. Once this bug is fixed then implmenting a
ChannelColumnPlugin
to show listening ports becomes trivial.#1571 introduced the idea and it was rolled into #1243
The text was updated successfully, but these errors were encountered: