Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix npe in dev mode when source is missing in recompilation diagnostic #1541

Merged
merged 1 commit into from
Mar 17, 2019

Conversation

devauxbr
Copy link
Contributor

@devauxbr devauxbr commented Mar 17, 2019

Hi

I have found a NPE bug in dev-mode that occurs when recompiling. It happens when the "source" is null on a diagnostic.

I have created a small project that reproduces the error when using the Apache TinkerPop Gremlin Core dependency : https://github.com/devauxbr/quarkus-npe-dev-mode

Playing with the debugger, I have found that the diagnostic causing this error is warning about incompatible supported source from the GremlinDslProcessor

Once fixed with this pull request, the full warning message is :
Supported source version 'RELEASE_8' from annotation processor 'org.apache.tinkerpop.gremlin.process.traversal.dsl.GremlinDslProcessor' less than -source '11', line -1 in [unknown source]2019-03-17 15:35:41,316 INFO [com.bde.qua.tes.AppLifecycleBean] (XNIO-1 task-1) The application is stopping... {}

My environment :
Mac OSX Mojave
openjdk version "11.0.2" 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
graalvm-ce-1.0.0-rc13

@n1hility n1hility self-requested a review March 17, 2019 15:28
Copy link
Member

@n1hility n1hility left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thank you for your contribution!

@gsmet gsmet merged commit 9c136d2 into quarkusio:master Mar 17, 2019
@gsmet
Copy link
Member

gsmet commented Mar 17, 2019

Merged, thanks!

@gsmet gsmet added this to the 0.12.0 milestone Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants