Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
1562591d
Commit
1562591d
authored
6 years ago
by
Anton Lobov
Browse files
Options
Download
Email Patches
Plain Diff
RUBY-20082 +extra null check
parent
5c4fb83c
Branches unavailable
Tags unavailable
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/yaml/src/org/jetbrains/yaml/schema/YamlJsonSchemaDocumentationProvider.java
+2
-1
...ains/yaml/schema/YamlJsonSchemaDocumentationProvider.java
with
2 additions
and
1 deletion
+2
-1
plugins/yaml/src/org/jetbrains/yaml/schema/YamlJsonSchemaDocumentationProvider.java
+
2
-
1
View file @
1562591d
...
...
@@ -64,7 +64,8 @@ public class YamlJsonSchemaDocumentationProvider extends DocumentationProviderEx
@NotNull
PsiFile
file
,
@Nullable
PsiElement
contextElement
)
{
JsonSchemaService
service
=
JsonSchemaService
.
Impl
.
get
(
file
.
getProject
());
if
(
service
==
null
||
service
.
getSchemaObject
(
file
.
getVirtualFile
())
==
null
)
return
null
;
VirtualFile
virtualFile
=
file
.
getVirtualFile
();
if
(
virtualFile
==
null
||
service
==
null
||
service
.
getSchemaObject
(
virtualFile
)
==
null
)
return
null
;
return
contextElement
;
}
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help