mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
WEB-24362 JSON Schema: NullPointerException is thrown on saving changes in the schema in use.
This commit is contained in:
@@ -58,7 +58,7 @@ public class JsonSchemaVfsListener extends BulkVirtualFileListenerAdapter {
|
||||
for (Editor editor : editors) {
|
||||
if (editor instanceof EditorEx) {
|
||||
final VirtualFile file = ((EditorEx)editor).getVirtualFile();
|
||||
if (JsonFileType.INSTANCE.equals(file.getFileType())) {
|
||||
if (file != null && file.isValid() && JsonFileType.INSTANCE.equals(file.getFileType())) {
|
||||
final Collection<Pair<VirtualFile, String>> collection = myService.getSchemaFilesByFile(file);
|
||||
if (collection != null && !collection.isEmpty()) {
|
||||
for (Pair<VirtualFile, String> pair : collection) {
|
||||
|
||||
Reference in New Issue
Block a user