diff --git a/index.html b/index.html
index fb604a8d8e..4b130f1dcb 100644
--- a/index.html
+++ b/index.html
@@ -303,8 +303,9 @@ var formatGasEstimates = function(data) {
return text;
};
var formatAssemblyText = function(asm, prefix, source) {
- var text = '';
- text += prefix + '.code\n';
+ if (typeof(asm) == typeof('') || asm === null || asm === undefined)
+ return prefix + asm + '\n';
+ var text = prefix + '.code\n';
$.each(asm['.code'], function(i, item) {
var v = item.value === undefined ? '' : item.value;
var src = '';