github / maven-plugins

Official GitHub Maven Plugins
MIT License
584 stars 198 forks source link

Using a user with no email address causes error site failed: Index: 0, Size: 0 #99

Open drdamour opened 8 years ago

drdamour commented 8 years ago

I used oauth token to use a user with no email addresses set: [ERROR] Failed to execute goal com.github.github:site-maven-plugin:0.12:site (default) on project rmp-core: Execution default of goal com.github.github:site-maven-plugin:0.12:site failed: Index: 0, Size: 0 -> [Help 1]

I don't think an email address should be required

IgorRodchenkov commented 8 years ago

Could you please tell more about it? Where (in the pom?) an email address is required?

drdamour commented 8 years ago

not in the pom. on the github side the user did not have an email address. I suspect the json de-serialization is expecting an email address field to be present.

ekoepfle commented 5 years ago

Getting this too. It's this line:

https://github.com/github/maven-plugins/blob/8d6d49393d1453be709ecc4cfe87f41f2081f5c5/github-site-plugin/src/main/java/com/github/maven/plugins/site/SiteMojo.java#L436

Our enterprise install displays null in this field for many CI accounts. Can the array be tested for size before an index is used?