Commit e221bca
committed
Fix NPE in HttpServletResponseExtension.getMimeTypes() for parallel test execution
Add null-safe operator when accessing webRequest.applicationContext to handle
cases where GrailsWebRequest.lookup() returns null during parallel test runs.
This fixes the Windows CI failure in RespondMethodSpec where tests that rely on
default HTML content type negotiation were failing with NullPointerException.1 parent b71a1e8 commit e221bca
File tree
1 file changed
+1
-1
lines changed- grails-mimetypes/src/main/groovy/org/grails/web/mime
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
0 commit comments