Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Error: AnimationRenderer failed: Cannot read property 'length' of null
Error: AnimationRenderer failed: Cannot read property 'length' of null [message #1123308] Wed, 02 October 2013 12:27 Go to next message
Matthias Nick is currently offline Matthias NickFriend
Messages: 197
Registered: August 2013
Senior Member
Hi,

I the the following error message:
Error: AnimationRenderer failed: Cannot read property 'length' of null

This happens when I toggle between the red and yellow button (right top corner) very fast: widgets.eclipse-scout.cloudbees.net/web

Analysis:
Version: Rap 2.1.0

The problem is caused in the class rwt.animation.AnimationRenderer by the method:
gradient : function( value, startValue, endValue ) {
 var convertColor = rwt.animation.AnimationRenderer.converter.color;
 var convertFactor = rwt.animation.AnimationRenderer.converter.factor;
 var result = [];
 var length = Math.min( endValue.length, startValue.length );

because endValue = null


my css file looks as follows:
Button[PUSH],
Button[TOGGLE],
Button[BORDER] {
  background-image: gradient(linear, left top, left bottom, from(#7ab9dd), to(#67a8ce));
  color: #ffffff;
  animation: hoverOut 500ms ease-out;
  border-radius: 5px;
  cursor: pointer;
  padding: 4px 5px;
}


If I remove the animation property, the error goes away.

Can you give me a hint?
Re: Error: AnimationRenderer failed: Cannot read property 'length' of null [message #1123462 is a reply to message #1123308] Wed, 02 October 2013 15:39 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
please open a bugzilla and attach a snippet/project there to reproduce
the issue?
Thanks,
Ivan

On 10/2/2013 3:27 PM, Matthias Nick wrote:
> Hi,
>
> I the the following error message:
> Error: AnimationRenderer failed: Cannot read property 'length' of null
>
> This happens when I toggle between the red and yellow button (right top corner) very fast: widgets.eclipse-scout.cloudbees.net/web
>
> Analysis:
> Version: Rap 2.1.0
>
> The problem is caused in the class rwt.animation.AnimationRenderer by the method:
>
> gradient : function( value, startValue, endValue ) {
> var convertColor = rwt.animation.AnimationRenderer.converter.color;
> var convertFactor = rwt.animation.AnimationRenderer.converter.factor;
> var result = [];
> var length = Math.min( endValue.length, startValue.length );
>
> because endValue = null
>
>
> my css file looks as follows:
>
> Button[PUSH],
> Button[TOGGLE],
> Button[BORDER] {
> background-image: gradient(linear, left top, left bottom, from(#7ab9dd), to(#67a8ce));
> color: #ffffff;
> animation: hoverOut 500ms ease-out;
> border-radius: 5px;
> cursor: pointer;
> padding: 4px 5px;
> }
>
>
> If I remove the animation property, the error goes away.
>
> Can you give me a hint?

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Error: AnimationRenderer failed: Cannot read property 'length' of null [message #1125301 is a reply to message #1123308] Fri, 04 October 2013 11:24 Go to previous message
Matthias Nick is currently offline Matthias NickFriend
Messages: 197
Registered: August 2013
Senior Member
Hi Ivan,

the related bugzilla entry:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=418667

Thanks
Previous Topic:Client error: TypeError
Next Topic:Google Maps Integration
Goto Forum:
  


Current Time: Thu Apr 25 05:32:31 GMT 2024

Powered by FUDForum. Page generated in 0.02686 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top