aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/Sdk.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/Sdk.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/Sdk.java
index b67a5be..9423ae7 100644
--- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/Sdk.java
+++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sdk/Sdk.java
@@ -1245,6 +1245,9 @@ public final class Sdk {
* @return an {@link IStatus} with the status of the action.
*/
private IStatus linkProjectAndLibrary(LinkLibraryBundle bundle, IProgressMonitor monitor) {
+ if (bundle.mProject.isOpen() == false) {
+ return Status.OK_STATUS;
+ }
try {
// add the library to the list of dynamic references. This is necessary to receive
// notifications that the library content changed in the builders.
@@ -1308,6 +1311,9 @@ public final class Sdk {
// loop on the projects to add.
for (IProject library : bundle.mLibraryProjects) {
+ if (library.isOpen() == false) {
+ continue;
+ }
final String libName = library.getName();
final String varName = getLibraryVariableName(libName);