From e59e3ea04af6edc38a686df2ed4be440fb5d6682 Mon Sep 17 00:00:00 2001
From: Andrei Karas <akaras@inbox.ru>
Date: Fri, 7 Jun 2013 23:10:10 +0300
Subject: add fixes after autochecks.

---
 src/gui/tradewindow.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/gui')

diff --git a/src/gui/tradewindow.cpp b/src/gui/tradewindow.cpp
index 2e5d026b2..3c1ce60bb 100644
--- a/src/gui/tradewindow.cpp
+++ b/src/gui/tradewindow.cpp
@@ -223,7 +223,8 @@ void TradeWindow::increaseQuantity(const int index, const bool own,
         item = mMyInventory->getItem(index);
     else
         item = mPartnerInventory->getItem(index);
-    item->increaseQuantity(quantity);
+    if (item)
+        item->increaseQuantity(quantity);
 }
 
 void TradeWindow::reset()
-- 
cgit v1.2.3-70-g09d2