summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhyeongseok.heo <hyeongseok.heo@samsung.com>2013-09-26 21:09:12 +0900
committerhyeongseok.heo <hyeongseok.heo@samsung.com>2013-09-26 21:09:12 +0900
commitb0d6ca413bc4c4ef1854d4041e6fc8bc4efb5ba5 (patch)
tree8d7d369e91727ad4103bbcea20a4d7ac2aa6f1ef
parentced174d44b863c83a37d3bfbef48277aa634e4ea (diff)
downloadcommon-eplugin-b0d6ca413bc4c4ef1854d4041e6fc8bc4efb5ba5.tar.gz
common-eplugin-b0d6ca413bc4c4ef1854d4041e6fc8bc4efb5ba5.tar.bz2
common-eplugin-b0d6ca413bc4c4ef1854d4041e6fc8bc4efb5ba5.zip
[Title]Fix bug of Preference
[Desc.]Fixed list() method logic as JavaDoc says. [Issue] Change-Id: Id7bdae231a35b2bc802c5e02462436d498ca24d0
-rwxr-xr-xorg.tizen.common/src/org/tizen/common/config/Preference.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/org.tizen.common/src/org/tizen/common/config/Preference.java b/org.tizen.common/src/org/tizen/common/config/Preference.java
index dfd68736b..b1269bc05 100755
--- a/org.tizen.common/src/org/tizen/common/config/Preference.java
+++ b/org.tizen.common/src/org/tizen/common/config/Preference.java
@@ -170,9 +170,11 @@ Preference
)
{
final HashSet<String> keys = new HashSet<String>();
- for ( final PreferenceProvider provider : providers )
- {
- keys.addAll( provider.keys() );
+ //fixed by Harry Hyeongseok Heo
+ //Fixed logic as JavaDoc says.
+ PreferenceProvider preferenceProvider = name2provider.get(name);
+ if( null != preferenceProvider) {
+ keys.addAll( preferenceProvider.keys() );
}
return Collections.unmodifiableCollection( keys );