createBarcode can sometimes return nullpointers. In newer upcoming revisions of libprison, it can happen in more cases, so the code needs a bit robustness for that.
The upcoming changes that are relevant are: https://phabricator.kde.org/D10603
Code written against plasma/5.8