diff --git a/kernel/classes/ezcontentclassattribute.php b/kernel/classes/ezcontentclassattribute.php
index <HASH>..<HASH> 100644
--- a/kernel/classes/ezcontentclassattribute.php
+++ b/kernel/classes/ezcontentclassattribute.php
@@ -64,9 +64,18 @@ class eZContentClassAttribute extends eZPersistentObject
             $this->DataTextI18nList->initDefault();
 
         // Make sure datatype gets final say if attribute should be translatable
-        if ( $this->attribute('can_translate') && !$this->dataType()->isTranslatable() )
+        if ( isset( $row['can_translate'] ) && $row['can_translate'] )
         {
-            $this->setAttribute('can_translate', 0);
+            $datatype = $this->dataType();
+            if ( $datatype instanceof eZDataType )
+            {
+                if ( !$datatype->isTranslatable() )
+                    $this->setAttribute('can_translate', 0);
+            }
+            else
+            {
+                eZDebug::writeError( 'Could not get instance of datatype: ' . $row['data_type_string'], __METHOD__ );
+            }
         }
     }
Fix: Fatal error on non object in Unit test

Normal execution is not touched by this, this is caused by something on ci server and/or in unit tests.