Skip to content

Commit 7231b95

Browse files
committed
1 parent 3724b21 commit 7231b95

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/org/primefaces/config/PrimeEnvironment.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import java.io.IOException;
1919
import java.io.InputStream;
2020
import java.util.Properties;
21+
import java.util.UUID;
2122
import java.util.logging.Level;
2223
import java.util.logging.Logger;
2324
import javax.validation.Validation;
@@ -51,6 +52,11 @@ public PrimeEnvironment() {
5152
beanValidationAvailable = checkIfBeanValidationIsAvailable();
5253

5354
buildVersion = resolveBuildVersion();
55+
// This should only happen if PF + the webapp is openend and started in the same netbeans instance
56+
// Fallback to a UID to void a empty version in the resourceUrls
57+
if (buildVersion == null || buildVersion.trim().isEmpty()) {
58+
buildVersion = UUID.randomUUID().toString().replace("-", "").substring(0, 10);
59+
}
5460
}
5561

5662
protected boolean checkIfBeanValidationIsAvailable() {

0 commit comments

Comments
 (0)