]> git.mxchange.org Git - jjobs-war.git/commitdiff
Handle over the updated country instance to avoid NPE (countryId must be set)
authorRoland Haeder <roland@mxchange.org>
Mon, 11 Apr 2016 17:53:46 +0000 (19:53 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 11 Apr 2016 17:54:15 +0000 (19:54 +0200)
src/java/org/mxchange/jjobs/beans/country/JobsAdminCountryWebApplicationBean.java

index ce28ecfdd5c38d11f96ca7d01c0c25cb55c81587..40f82021374ecfbc3ce19e4edb38665bc7751980 100644 (file)
@@ -135,10 +135,10 @@ public class JobsAdminCountryWebApplicationBean implements JobsAdminCountryWebAp
 
                try {
                        // Send country to bean
-                       this.countryBean.addCountry(country);
+                       Country updatedCountry = this.countryBean.addCountry(country);
 
                        // Fire event
-                       this.addedCountryEvent.fire(new AdminEventCountryAdded(country));
+                       this.addedCountryEvent.fire(new AdminEventCountryAdded(updatedCountry));
 
                        // Clear bean
                        this.clear();