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

NPE when package of interface is empty. #3556

Closed
2 tasks done
ujjboy opened this issue Feb 25, 2019 · 0 comments · Fixed by #3557
Closed
2 tasks done

NPE when package of interface is empty. #3556

ujjboy opened this issue Feb 25, 2019 · 0 comments · Fixed by #3557
Milestone

Comments

@ujjboy
Copy link
Contributor

ujjboy commented Feb 25, 2019

  • I have searched the issues of this repository and believe that this is not a duplicate.
  • I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

  • Dubbo version: 2.7.0

Steps to reproduce this issue

  1. Interface without package.

image

  1. Export service.
serviceConfig.setInterface(HelloService.class.getName());
serviceConfig.setRef(new HelloServiceImpl());

Expected Result

Export service.

Actual Result

Catch NPE when export service.

java.lang.NullPointerException
	at com.alibaba.dubbo.common.Version.getVersion(Version.java:127)
	at com.alibaba.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:440)
	at com.alibaba.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:358)
	at com.alibaba.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:317)
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 a pull request may close this issue.

2 participants