Skip to content

Commit 88a44b6

Browse files
authored
Merge pull request #6291 from IllianiCBT/unitTableNullEmpty
Added Handling for When Unit Quality is Manually Set to Empty or `null` Quality
2 parents bde25e7 + 9461ccb commit 88a44b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

MekHQ/src/mekhq/gui/adapter/UnitTableMouseAdapter.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,10 @@ public void actionPerformed(ActionEvent action) {
219219
"Set Quality", JOptionPane.PLAIN_MESSAGE, null, possibilities,
220220
PartQuality.QUALITY_D.toName(reverse));
221221

222+
if (quality == null || quality.isBlank()) {
223+
return;
224+
}
225+
222226
PartQuality q = PartQuality.fromName(quality, reverse);
223227
for (Unit unit : units) {
224228
if (null != unit) {

0 commit comments

Comments
 (0)