mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
SPARK-1249: item-not-found(404) in PrivacyManager
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@12127 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
committed by
konstantin.zolotarev
parent
8c4c491292
commit
af3ea15622
@ -328,6 +328,9 @@ public abstract class SparkPrivacyList {
|
||||
try {
|
||||
return PrivacyManager.getInstance().getPrivacyListManager().getActiveList().toString().equals(getListName());
|
||||
} catch (XMPPException ex) {
|
||||
if (ex.getXMPPError().getCode() == 404) {
|
||||
return false;
|
||||
}
|
||||
Log.error(ex);
|
||||
}
|
||||
return false;
|
||||
@ -342,6 +345,9 @@ public abstract class SparkPrivacyList {
|
||||
try {
|
||||
return PrivacyManager.getInstance().getPrivacyListManager().getDefaultList().toString().equals(getListName());
|
||||
} catch (XMPPException ex) {
|
||||
if (ex.getXMPPError().getCode() == 404) {
|
||||
return false;
|
||||
}
|
||||
Log.error(ex);
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user