Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Commit

Permalink
Fix NullPointerException
Browse files Browse the repository at this point in the history
  • Loading branch information
meanmail committed Oct 15, 2022
1 parent 1ed1913 commit 7e63ed4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class RequirementsFileTypeDetector : FileTypeRegistry.FileTypeDetector {
override fun detect(
file: VirtualFile, firstBytes: ByteSequence, firstCharsIfText: CharSequence?
): FileType? {
if (file.parent.name == "requirements") {
if (file.parent?.name == "requirements") {
return RequirementsFileType
}

Expand Down

0 comments on commit 7e63ed4

Please sign in to comment.