Skip to content

Fix potential NPE in Utility.makeTemporaryDirectory - #10414

Merged
zbynek merged 1 commit into
gwtproject:mainfrom
PPazderski:NPE-makeTemporaryDirectory
Oct 7, 2026
Merged

zbynek merged 1 commit into
gwtproject:mainfrom
PPazderski:NPE-makeTemporaryDirectory

Conversation

@PPazderski

Copy link
Copy Markdown
Contributor

Method com.google.gwt.util.tools.Utility.makeTemporaryDirectory violates its JavaDoc because the baseDir cannot be null anymore since #10083.

I found this while running CodeServer from an older gwt-codeserver.jar with a new gwt-dev.jar on classpath.
Fixing my classpath avoids this issue so I actually don't mind if you merge this trivial change or close it since the Utility class is planed for removal anyways.

@niloc132

niloc132 commented Oct 7, 2026

Copy link
Copy Markdown
Member

Thanks - it is intended to be removed soon, but the fix is simple and maybe it will briefly save someone else a headache.

@niloc132 niloc132 added the ready This PR has been reviewed by a maintainer and is ready for a CI run. label Oct 7, 2026
@zbynek
zbynek merged commit e3503ea into gwtproject:main Oct 7, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready This PR has been reviewed by a maintainer and is ready for a CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants