CLOUDSTACK-1175: Fix NPE by making _store a static variable shared by objects

Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
Rohit Yadav 2013-02-07 18:23:05 +05:30
parent a9955f155a
commit 9b691fc443

View File

@ -56,7 +56,7 @@ public class ApiRateLimitServiceImpl extends AdapterBase implements APIChecker,
*/
private int maxAllowed = 30;
private LimitStore _store = null;
private static LimitStore _store = null;
@Inject
AccountService _accountService;