Skip to content

Commit

Permalink
Fixed NSDictionary helper methods to return null instead of `"nul…
Browse files Browse the repository at this point in the history
…l"` — causing "Resource not found: /idea/nullApplicationInfo.xml" #1348
  • Loading branch information
hsz committed Mar 20, 2023
1 parent cf0e080 commit e4e7338
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [next]

### Fixed
- Add instrumented classes (sources + tests) to the tests classpath before tests execution [#1332](../../issues/1332)
- Fixed `NSDictionary` helper methods to return `null` instead of `"null"` — causing "Resource not found: /idea/nullApplicationInfo.xml" [#1348](../../issues/1348)

## [1.13.2] - 2023-03-10

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/org/jetbrains/intellij/utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,9 @@ fun Boolean.ifFalse(block: () -> Unit): Boolean {
return this
}

fun NSDictionary.getDictionary(key: String) = this[key] as NSDictionary
fun NSDictionary.getDictionary(key: String) = this[key] as? NSDictionary

fun NSDictionary.getValue(key: String) = this[key].toString()
fun NSDictionary.getValue(key: String) = this[key]?.toString()

internal val FileSystemLocation.asPath
get() = asFile.toPath().toAbsolutePath()
Expand Down

0 comments on commit e4e7338

Please sign in to comment.