Fix null/empty check.

Took 3 minutes
This commit is contained in:
Lukas Brübach 2025-09-25 11:27:57 +02:00
parent 70aed25eef
commit 18cc49e7b3

View file

@ -428,7 +428,7 @@ PrintingInfo CardDatabase::getSpecificPrinting(const QString &cardName,
for (const auto &printings : setMap) {
for (auto &cardInfoForSet : printings) {
if (collectorNumber != nullptr) {
if (!collectorNumber.isEmpty()) {
if (cardInfoForSet.getSet()->getShortName() == setShortName &&
cardInfoForSet.getProperty("num") == collectorNumber) {
return cardInfoForSet;