You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2013/02/07 13:54:47 UTC

git commit: refs/heads/4.1 - CLOUDSTACK-1175: Fix NPE by making _store a static variable shared by objects

Updated Branches:
  refs/heads/4.1 c693cfb37 -> b513448ec


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

Signed-off-by: Rohit Yadav <bh...@apache.org>
(cherry picked from commit 9b691fc443cc27f1e2026ec239fc4aa11a4167aa)

Signed-off-by: Rohit Yadav <bh...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/b513448e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/b513448e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/b513448e

Branch: refs/heads/4.1
Commit: b513448ec2748619cf90fc215336b5065796a5c6
Parents: c693cfb
Author: Rohit Yadav <bh...@apache.org>
Authored: Thu Feb 7 18:23:05 2013 +0530
Committer: Rohit Yadav <bh...@apache.org>
Committed: Thu Feb 7 18:24:35 2013 +0530

----------------------------------------------------------------------
 .../ratelimit/ApiRateLimitServiceImpl.java         |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/b513448e/plugins/api/rate-limit/src/org/apache/cloudstack/ratelimit/ApiRateLimitServiceImpl.java
----------------------------------------------------------------------
diff --git a/plugins/api/rate-limit/src/org/apache/cloudstack/ratelimit/ApiRateLimitServiceImpl.java b/plugins/api/rate-limit/src/org/apache/cloudstack/ratelimit/ApiRateLimitServiceImpl.java
index a5726e1..5f38ccf 100644
--- a/plugins/api/rate-limit/src/org/apache/cloudstack/ratelimit/ApiRateLimitServiceImpl.java
+++ b/plugins/api/rate-limit/src/org/apache/cloudstack/ratelimit/ApiRateLimitServiceImpl.java
@@ -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;