Skip to content

Commit b55a82f

Browse files
sebthomrubenporras
authored andcommitted
fix: allow passing null to LanguageServers#forProject(IProject)
1 parent 589e1cc commit b55a82f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

org.eclipse.lsp4e/src/org/eclipse/lsp4e/LanguageServers.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,11 +309,11 @@ public boolean anyMatching() {
309309
*/
310310
public static class LanguageServerProjectExecutor extends LanguageServers<LanguageServerProjectExecutor> {
311311

312-
private final IProject project;
312+
private final @Nullable IProject project;
313313

314314
private boolean restartStopped = true;
315315

316-
LanguageServerProjectExecutor(final IProject project) {
316+
LanguageServerProjectExecutor(final @Nullable IProject project) {
317317
this.project = project;
318318
}
319319

@@ -476,7 +476,7 @@ public static LanguageServerDocumentExecutor forDocument(final IDocument documen
476476
* @param project
477477
* @return Executor that will run requests on servers appropriate to the supplied project
478478
*/
479-
public static LanguageServerProjectExecutor forProject(final IProject project) {
479+
public static LanguageServerProjectExecutor forProject(final @Nullable IProject project) {
480480
return new LanguageServerProjectExecutor(project);
481481
}
482482

0 commit comments

Comments
 (0)