src/Pure/PIDE/session.scala
changeset 82769 7cb5ef6da1f0
parent 82765 c638af1c3473
--- a/src/Pure/PIDE/session.scala	Wed Jun 25 16:35:25 2025 +0200
+++ b/src/Pure/PIDE/session.scala	Thu Jun 26 17:14:01 2025 +0200
@@ -130,7 +130,7 @@
   def print_now(): String = (Time.now() - init_time).toString
 
   val store: Store = Store(_session_options)
-  def cache: Rich_Text.Cache = if (store == null) Rich_Text.Cache.make() else store.cache
+  def cache: Rich_Text.Cache = store.cache
 
   def build_blobs_info(name: Document.Node.Name): Command.Blobs_Info = Command.Blobs_Info.empty
   def build_blobs(name: Document.Node.Name): Document.Blobs = Document.Blobs.empty