File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
src/main/java/net/seesharpsoft/intellij/plugins/csv/components Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -120,10 +120,9 @@ public void resetValueSeparator(@NotNull PsiFile psiFile) {
120120
121121 public @ NotNull
122122 CsvValueSeparator getValueSeparator (Project project , VirtualFile virtualFile ) {
123- if (project == null || virtualFile == null ) {
123+ if (project == null || virtualFile == null || !( virtualFile . getFileType () instanceof LanguageFileType ) ) {
124124 return CsvEditorSettings .getInstance ().getDefaultValueSeparator ();
125125 }
126- assert (virtualFile .getFileType () instanceof LanguageFileType );
127126 Language language = ((LanguageFileType ) virtualFile .getFileType ()).getLanguage ();
128127 if (language instanceof CsvSeparatorHolder ) {
129128 return ((CsvSeparatorHolder ) language ).getSeparator ();
You can’t perform that action at this time.
0 commit comments