Add check for empty QList before accessing it.
I got SIGABRT
on void NMISunriseAPI::setData(QList<AbstractSunrise> sunrise)
.
Turned out that sunrise
was empty and had no checks before accessing.
I got SIGABRT
on void NMISunriseAPI::setData(QList<AbstractSunrise> sunrise)
.
Turned out that sunrise
was empty and had no checks before accessing.