diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php
index d92a1f4f..92f399bb 100644
--- a/adminer/include/adminer.inc.php
+++ b/adminer/include/adminer.inc.php
@@ -135,7 +135,7 @@ class Adminer {
* @return string
*/
function selectVal($val, $link, $field) {
- $return = ($field["type"] == "char" ? "$val
" : $val);
+ $return = ($val != "NULL" && $field["type"] == "char" ? "$val
" : $val);
if (ereg('blob|binary', $field["type"]) && !is_utf8($val)) {
$return = lang('%d byte(s)', strlen($val));
}