File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/main/java/org/primefaces/config Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 1818import java .io .IOException ;
1919import java .io .InputStream ;
2020import java .util .Properties ;
21+ import java .util .UUID ;
2122import java .util .logging .Level ;
2223import java .util .logging .Logger ;
2324import 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 () {
You can’t perform that action at this time.
0 commit comments