diff --git a/src/api-impl/android/content/res/AssetManager.java b/src/api-impl/android/content/res/AssetManager.java index 343d9103..19528f27 100644 --- a/src/api-impl/android/content/res/AssetManager.java +++ b/src/api-impl/android/content/res/AssetManager.java @@ -212,6 +212,10 @@ public final class AssetManager { return ""; ResValue resValue = tableBlockSearch(id).pickOne().getResValue(); if (resValue.getValueType() == ValueType.REFERENCE) { + if(id == resValue.getData()) { + System.out.println("getResourceText: self-reference... returing \"\""); + return ""; + } return getResourceText(resValue.getData()); } return resValue.getDataAsPoolString().get();