Hi Silvere,

   gestureQuats = new Quat4f[len];
is not enough. You also need to new
individual Quad4f before calling getQuats()

i.e.  for (int i=0; i < len; i++) {
           gestureQuats[i] = new Quat4f();
       }

- Kelvin


>X-Unix-From: [EMAIL PROTECTED]  Wed Apr 11 16:55:51 2001
>Mime-Version: 1.0
>X-Sender: [EMAIL PROTECTED] (Unverified)
>Date: Thu, 12 Apr 2001 01:49:16 +0200
>From: Silvere Martin-Michiellot <[EMAIL PROTECTED]>
>Subject: [JAVA3D] can't find the bug
>To: [EMAIL PROTECTED]
>
>Hi,
>
>
>(mail mostly to sun engineers)
>
>I have a program where:
>
>gestureKnots = new
>float[((RotationPathInterpolator)gestureInterpolator).getArrayLengths(
>)];
>gestureQuats = new
>Quat4f[((RotationPathInterpolator)gestureInterpolator).getArrayLengths
>()];
>
>((RotationPathInterpolator)gestureInterpolator).getKnots(gestureKnots)
>;
>
>((RotationPathInterpolator)gestureInterpolator).getQuats(gestureQuats)
>;
>
>There is a null pointer exception thrown by the Interpolator (line
>150, your code) when the fourth line is executed.
>
>known bug or my fault ?
>(sun people, I can send you the full code if really needed and if you
>don't reuse it for your personal needs).
>
>
>Thanks in advance,
>
>Have a nice day,
>
>  Silvere Martin.
>--
>Silvere MARTIN-MICHIELLOT
>
>
>Construit le futur d'internet  sur http://www.digitalbiosphere.com.
>--
>
>===========================================================================
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff JAVA3D-INTEREST".  For general help, send email to
>[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to