We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9328f0b commit 7f09e3cCopy full SHA for 7f09e3c
MekHQ/src/mekhq/campaign/parts/Part.java
@@ -453,10 +453,11 @@ public String getDesc() {
453
toReturn.append("</b><br/>").append(getDetails()).append("<br/>");
454
}
455
456
- toReturn.append("<br> <b>In Warehouse:</b> ")
457
- .append(campaign.getWarehouse()
458
- .getSparePartsCount(this))
459
- .append(' ');
+ if (campaign.getWarehouse() != null) {
+ toReturn.append("<br> <b>In Warehouse:</b> ")
+ .append(campaign.getWarehouse().getSparePartsCount(this))
+ .append(' ');
460
+ }
461
462
if (getSkillMin() <= SkillType.EXP_ELITE) {
463
toReturn.append(getTimeLeft())
0 commit comments