# Expected argument of type "Shopware\\Models\\Country\\Country", "NULL" given

**URL:** <https://forum.shopware.com/t/expected-argument-of-type-shopware-models-country-country-null-given/57076>\
**Category:** Allgemein\
**Created:** [14. Dezember 2018 um 10:36 UTC](https://forum.shopware.com/t/expected-argument-of-type-shopware-models-country-country-null-given/57076 "2018-12-14T10:36:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MichaelTSWS](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@MichaelTSWS](https://forum.shopware.com/u/MichaelTSWS)\
**Post date:** [14. Dezember 2018 um 10:36 UTC](https://forum.shopware.com/t/expected-argument-of-type-shopware-models-country-country-null-given/57076/1 "2018-12-14T10:36:36Z")

</div>

Hallo zusammen,

ich habe aktuell das Problem, dass SW (5.5.4) mir den o.g. Fehler schmeißt, wenn jemand im Bestellabschluss einen Gutschein eingibt. Der Kunde wird dann zurück auf Seite 2 des Bestellprozesses geführt.

**Message:** Expected argument of type “Shopware\Models\Country\Country”, “NULL” given  
&nbsp;

**Request:**  
{  
&nbsp;&nbsp;&nbsp; “uri”: “/checkout/addVoucher/sTargetAction/confirm”,  
&nbsp;&nbsp;&nbsp; “method”: “POST”,  
&nbsp;&nbsp;&nbsp; “query”: {  
&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; “module”: “frontend”,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; “controller”: “checkout”,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; “action”: “addVoucher”,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; “sTargetAction”: “confirm”  
&nbsp;&nbsp;&nbsp; },  
&nbsp;&nbsp;&nbsp; “post”: {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; “sAGB”: “0”,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; “sVoucher”: “123456”,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; “\_\_csrf\_token”: “dga3tXR2sRn2vCe4pG87gqNG0sncUS”  
&nbsp;&nbsp;&nbsp; }  
}

&nbsp;

Kann sich da jemand einen Reim drauf machen?

&nbsp;

Lieben Dank,  
Michael
