diff --git a/telethon/tl/session.py b/telethon/tl/session.py
index <HASH>..<HASH> 100644
--- a/telethon/tl/session.py
+++ b/telethon/tl/session.py
@@ -163,7 +163,8 @@ class Session:
 
                 rows = []
                 for p_id, p_hash in data.get('entities', []):
-                    rows.append((p_id, p_hash, None, None, None))
+                    if p_hash is not None:
+                        rows.append((p_id, p_hash, None, None, None))
                 return rows
             except UnicodeDecodeError:
                 return []  # No entities
Assert hash is not None when migrating from JSON sessions