Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2006-05-31 20:15:29 +0000
committerMichael Valenta2006-05-31 20:15:29 +0000
commit11dd4258b17f219635fdb7dce25eb0ef337dd849 (patch)
tree76f7623bb63e95507e9d3d28c113275e5dee5181 /examples/org.eclipse.team.examples.filesystem
parent42b71416a5766f94c1bf860bcf89dcc32a767e63 (diff)
downloadeclipse.platform.team-11dd4258b17f219635fdb7dce25eb0ef337dd849.tar.gz
eclipse.platform.team-11dd4258b17f219635fdb7dce25eb0ef337dd849.tar.xz
eclipse.platform.team-11dd4258b17f219635fdb7dce25eb0ef337dd849.zip
Bug 123024 [Testing Model] Make sure Add works with logical model elements that span files
Diffstat (limited to 'examples/org.eclipse.team.examples.filesystem')
-rw-r--r--examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/model/ModelObjectDefinitionFile.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/model/ModelObjectDefinitionFile.java b/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/model/ModelObjectDefinitionFile.java
index f416cc964..a30378070 100644
--- a/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/model/ModelObjectDefinitionFile.java
+++ b/examples/org.eclipse.team.examples.filesystem/src/org/eclipse/team/examples/model/ModelObjectDefinitionFile.java
@@ -33,6 +33,8 @@ public class ModelObjectDefinitionFile extends ModelFile {
}
public static IResource[] getReferencedResources(String projectName, IStorage storage) throws CoreException {
+ if (storage == null)
+ return new IResource[0];
List result = new ArrayList();
String[] filePaths = readLines(storage);
for (int i = 0; i < filePaths.length; i++) {

Back to the top