<mavenBuild _class='hudson.maven.MavenBuild'><action _class='hudson.maven.reporters.SurefireReport'><failCount>0</failCount><skipCount>0</skipCount><totalCount>2</totalCount><urlName>testReport</urlName></action><action></action><action _class='hudson.maven.reporters.MavenArtifactRecord'><url>https://hub.spigotmc.org/jenkins/job/BungeeCord/net.md-5$bungeecord-api/916/mavenArtifacts/</url></action><action _class='org.jenkinsci.plugins.displayurlapi.actions.RunDisplayAction'></action><building>false</building><displayName>#916</displayName><duration>16178</duration><estimatedDuration>12390</estimatedDuration><fullDisplayName>BungeeCord » BungeeCord-API #916</fullDisplayName><id>2014-06-11_02-10-08</id><inProgress>false</inProgress><keepLog>false</keepLog><number>916</number><queueId>-1</queueId><result>SUCCESS</result><timestamp>1402467008000</timestamp><url>https://hub.spigotmc.org/jenkins/job/BungeeCord/net.md-5$bungeecord-api/916/</url><builtOn></builtOn><changeSet _class='hudson.maven.FilteredChangeLogSet'><item _class='hudson.plugins.git.GitChangeSet'><affectedPath>api/src/main/java/net/md_5/bungee/api/ServerPing.java</affectedPath><commitId>107d6b011db98e549b401ae56daa01d2701ad287</commitId><timestamp>1402430960000</timestamp><author><absoluteUrl>https://hub.spigotmc.org/jenkins/user/md_5</absoluteUrl><fullName>md_5</fullName></author><authorEmail>git@md-5.net</authorEmail><comment>Fix ServerPing NPE w/ String favicons

Currently, passing a null favicon String to the ServerPing(Protocol, Players, String, String) constructor causes a NPE. However, passing a null `Favicon` object to the corresponding constructor does not cause one. Setting the favicon String using the setFavicon(String) method doesn't cause a NPE either.

Therefore, the NPE thrown by the constructor is inconsistent and should be avoided. Please find a sample NPE here: http://newpaste.md-5.net/pmtqjc8vl (Note the `null` favicon)

This PR changes the documented (unintended?) behaviour by adding a null check before passing the favicon String to the alternative `Favicon` object constructor. This makes the constructor consistent with the other one and the `setFavicon(String)` method. This also adds compatibility for old (made before Favicon API) plugins passing `null` favicon Strings (and expecting no favicon to be displayed instead of a NPE).

Thanks!
</comment><date>2014-06-11T06:09:20+1000</date><id>107d6b011db98e549b401ae56daa01d2701ad287</id><msg>Fix ServerPing NPE w/ String favicons</msg><path><editType>edit</editType><file>api/src/main/java/net/md_5/bungee/api/ServerPing.java</file></path></item></changeSet><culprit><absoluteUrl>https://hub.spigotmc.org/jenkins/user/md_5</absoluteUrl><fullName>md_5</fullName></culprit><mavenArtifacts><url>https://hub.spigotmc.org/jenkins/job/BungeeCord/net.md-5$bungeecord-api/916/mavenArtifacts/</url></mavenArtifacts></mavenBuild>