Dropdown template URI breaks on language switch I have the following code in my header of a multilingual site. It produces the correct urls in english.

{% for entry in menuentries %}

    {% if entry.entryLink.first|length %}
        {% set navlink = entry.entryLink.first().uri %}
    {% elseif entry.customMenuUrl|length %}
        {% set navlink = entry.customMenuUrl %}
    {% endif %}

    {% if entry.level == 1 and entry.children|length %}
        &lt;li class="dropdown"&gt;
            &lt;a href="{{ siteUrl }}{{ navlink }}" class="dropdown-toggle {{ macros.activeLinkClass(entry.uri, entry.level)|trim }} level{{ entry.level }}" data-toggle="dropdown" role="button" data-hover="dropdown" data-length="{{ entry.title|length }}aria-haspopup="true" aria-expanded="false"&gt;{{ entry.title }} &lt;span class="caret"&gt;&lt;/span&gt;&lt;/a&gt;

            &lt;ul class="dropdown-menu" &gt;
                {% for child in entry.getDescendants() %}
                    &lt;li&gt;
                        &lt;a  href="{{ siteUrl }}{{ child.entryLink.first().uri  }}" class="{{ macros.isActiveChildClass(child.slug) | trim }} level{{ child.level }}"&gt;{{ child.title }}&lt;/a&gt;
                    &lt;/li&gt;
                {% endfor %}
            &lt;/ul&gt;
        &lt;/li&gt;

    {% elseif entry.level == 1 and not entry.hasDescendants() %}

        &lt;li&gt;
            &lt;a href="{{ siteUrl }}{{ navlink }}" class="{{ macros.activeLinkClass(entry.uri, entry.level) |trim }} level{{ entry.level }}"&gt;{{ entry.title }}&lt;/a&gt;
        &lt;/li&gt;

    {% endif %}


However when I switch languages eg. to french the child.entryLink.first().uri returns null. Even if I just change the en to fr I get the same result. Bit confused.
UPDATE:
Mats you were right - I didnt have any data in the french menus or i had random custom url data. Once corrected the entry model came back whole. Phew