cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject android commit: Added Log.e when Config is not initialised but accessed
Date Sun, 09 Feb 2014 02:24:45 GMT
Updated Branches:
  refs/heads/master 137eb40fa -> d260d0c18


Added Log.e when Config is not initialised but accessed


Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/d260d0c1
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/d260d0c1
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/d260d0c1

Branch: refs/heads/master
Commit: d260d0c18259f44393309ab661ecdd023f0cfaaf
Parents: 137eb40
Author: arudenko <alexander.rudenko@gmil.com>
Authored: Thu Jul 25 11:23:05 2013 +0800
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Sat Feb 8 21:24:20 2014 -0500

----------------------------------------------------------------------
 framework/src/org/apache/cordova/Config.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/d260d0c1/framework/src/org/apache/cordova/Config.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/Config.java b/framework/src/org/apache/cordova/Config.java
index 0185338..31a1370 100644
--- a/framework/src/org/apache/cordova/Config.java
+++ b/framework/src/org/apache/cordova/Config.java
@@ -204,6 +204,7 @@ public class Config {
      */
     public static void addWhiteListEntry(String origin, boolean subdomains) {
         if (self == null) {
+            Log.e(TAG, "Config was not initialised. Did you forget to Config.init(this)?");
             return;
         }
         self.whitelist.addWhiteListEntry(origin, subdomains);
@@ -217,6 +218,7 @@ public class Config {
      */
     public static boolean isUrlWhiteListed(String url) {
         if (self == null) {
+            Log.e(TAG, "Config was not initialised. Did you forget to Config.init(this)?");
             return false;
         }
         return self.whitelist.isUrlWhiteListed(url);


Mime
View raw message