Manuscript (Case [Issue]22686) Sources and Changes - Open browser fails without sources file

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Manuscript (Case [Issue]22686) Sources and Changes - Open browser fails without sources file

Pharo Issue Tracker
Manuscript Notification
avatar
Bug in Project:  Sources and Changes: 1. Pharo Image  •  You are subscribed to this case
an additional nil check here seems to fix it (the " stream  ifNil: [ ^ absentBlock value ].  ").

 

readStreamAtFileIndex: index atPosition: position ifPresent: presentBlock ifAbsent: absentBlock
 
   | queue stream rofa result |
       
      queue := readOnlyQueue.
      rofa := queue nextOrNil ifNil: [ self createReadOnlyFiles ].
       
   rofa ifNil: [ ^ absentBlock value ].  
   stream := rofa at: index.
    stream  ifNil: [ ^ absentBlock value ].  

   position > (files at: index) size ifTrue: [ 
        self finishedReading: rofa from: queue. 
        ^ absentBlock value 
    ].

   stream position: position.
   result := presentBlock value: stream.
       
    self finishedReading: rofa from: queue. 
                      
    ^ result
Priority Priority: 2 – Really Important Status Status: Work Needed
Assigned To Assigned to: Everyone Milestone Milestone: Pharo7.0

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want Manuscript notifications anymore? Update your preferences.

Manuscript

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
https://lists.gforge.inria.fr/mailman/listinfo/pharo-bugtracker