Uncaught TypeError: Cannot call method 'show' of null
<p>I am getting an :Uncaught TypeError: Cannot call method 'show' of null" error in a script which points out the error is somewhere in this area, see below:</p>

<pre><code>            // Show the correct more view images and if there are moreviews displayed, display the more views title
            if (selectedmoreview !== null &amp;&amp; selectedmoreview !== undefined &amp;&amp; howMany &gt; 0) {
                selectedmoreviewtitle.show();
                selectedmoreview.invoke('show');
            } else {
                if(howMany &gt; 0){ selectedmoreviewtitle.hide(); }
            }

            spConfig.configureElement(dropdownEl);
</code></pre>

<p>Can anyone help me sort this out and have my functionality working? Some expert advice would be truly appreciated</p>
