diff --git a/spring-boot/src/main/java/org/springframework/boot/ResourceBanner.java b/spring-boot/src/main/java/org/springframework/boot/ResourceBanner.java
index <HASH>..<HASH> 100644
--- a/spring-boot/src/main/java/org/springframework/boot/ResourceBanner.java
+++ b/spring-boot/src/main/java/org/springframework/boot/ResourceBanner.java
@@ -99,8 +99,8 @@ public class ResourceBanner implements Banner {
 	}
 
 	protected String getApplicationVersion(Class<?> sourceClass) {
-		return (sourceClass == null ? null : sourceClass.getPackage()
-				.getImplementationVersion());
+		Package sourcePackage = (sourceClass == null ? null : sourceClass.getPackage());
+		return (sourcePackage == null ? null : sourcePackage.getImplementationVersion());
 	}
 
 	protected String getBootVersion() {
Fix banner NPE when when using the default package

Update ResourceBanner to protect against a null application package.

Fixes gh-<I>