From 1393591b90988558e537533138bab25a65025380 Mon Sep 17 00:00:00 2001 From: Tor Norbye Date: Thu, 22 Mar 2012 18:56:21 -0700 Subject: Fix bug related to suppressing attributes in elements What was I thinking? Change-Id: I7f45703733ab593a477b7671028fec861acbc888 --- .../ide/eclipse/adt/internal/lint/AddSuppressAttribute.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'eclipse') diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/AddSuppressAttribute.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/AddSuppressAttribute.java index 1137901..3297756 100644 --- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/AddSuppressAttribute.java +++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/lint/AddSuppressAttribute.java @@ -191,12 +191,10 @@ class AddSuppressAttribute implements ICompletionProposal { node = node.getParentNode(); } if (node == null) { - return null; - } - - node = document.getDocumentElement(); - if (node == null) { - return null; + node = document.getDocumentElement(); + if (node == null) { + return null; + } } String desc = String.format("Add ignore '%1$s\' to element", id); -- cgit v1.1