2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-29 05:56:47 +00:00

Add null check

This commit is contained in:
Oliver 2021-06-29 22:28:58 +10:00
parent 2fd7409804
commit b741e0100b

View File

@ -575,7 +575,7 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
);
// Add or remove custom barcode
if (item.uid.isEmpty) {
if (item != null && item.uid.isEmpty) {
tiles.add(
ListTile(
title: Text(L10().barcodeAssign),