b46112dfcd9ed0f94aa1f1ef5fa989c249aa0f9f
The conditions on which to "updateStats" during the rebuilding of filters needed to be updated. stw is NULL when rebuilding the filters due to a "UNLOCK CARDS" action. Thus the call to stw->updateStats throws a NPE. stw is not null only when a deck has been selected to edit. Otherwise, it makes no sense to actually update the stats of a non-selected deck.
Languages
C++
55.1%
C
38.6%
Objective-C
3.4%
Java
1.5%
HTML
0.8%
Other
0.4%