Bloc icon indicating copy to clipboard operation
Bloc copied to clipboard

[Bug] Class not found in BlLayoutErrorHandler>>processError:

Open labordep opened this issue 3 years ago • 0 comments

I'm using only the NewBloc Project. When a BlLayoutError in handled there is a problem with a "isKindOf".

aBlHandledError element withAllParentsDo: [ :aParentElement | (aParentElement isKindOf: #BlInfiniteElement asClass) ifTrue: [ aParentElement state beStepStart ] ].

BlInfiniteElement is a not existing class (and also the message beStepStart). I propose this patch (waiting for better) :

aBlHandledError element withAllParentsDo: [ :aParentElement | | class | self flag:'This class does not exits in NewBloc core, try to rewrite this code without this class method'. class := #BlInfiniteElement asClassIfAbsent: [ nil ]. (class notNil and:[aParentElement isKindOf: class]) ifTrue: [ aParentElement state beStepStart ] ].

image

Thks!

labordep avatar Jan 29 '22 19:01 labordep