Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic NPE in Resource View using calendar.ensureVisible(DateTime.now()); (Read 3161 times)
DamianC
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 16
Joined: Aug 19th, 2015
NPE in Resource View using calendar.ensureVisible(DateTime.now());
Sep 8th, 2015 at 8:05am
Print Post  
Hi,

I've got a nicely working Resource View except for when I set it to "now" via calendar.ensureVisible(DateTime.now());

That date is available in the Resource View - it may need the scroll bars adjusted to get to it.

Stack trace below.

Any clues would be much appreciated.

Many thanks,
-Damian


=============================
StackTraceLogger.START TRACE .................................
STLog=com.mindfusion.scheduling.ResourceRowCell.getItemLane(ResourceRowCell.java
:1199)
   STLog=com.mindfusion.scheduling.ResourceViewCell.ensureVisible(ResourceViewCell.
java:1381)
   STLog=com.mindfusion.scheduling.Calendar.ensureVisible(Calendar.java:3266)
   STLog=com.mindfusion.scheduling.Calendar.ensureVisible(Calendar.java:3248)
   STLog=com.mindfusion.scheduling.awt.AwtCalendar.ensureVisible(AwtCalendar.java:1
102)
   ........................WorkshopScheduleUi.requestShowNow(WorkshopScheduleUi.jav
a:96)
===========================


  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: NPE in Resource View using calendar.ensureVisible(DateTime.now());
Reply #1 - Sep 8th, 2015 at 8:53am
Print Post  
Hi,

We were able to reproduce this bug and we will send you a fixed version as soon as it's available.

Regards,
Meppy
  
Back to top
 
IP Logged
 
DamianC
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 16
Joined: Aug 19th, 2015
Re: NPE in Resource View using calendar.ensureVisible(DateTime.now());
Reply #2 - Sep 10th, 2015 at 6:11am
Print Post  
Hi Meppy,

The update you sent through does fix the problem. No more NPE.

For usability I am actually using it as follows ...
calendar.ensureVisible(DateTime.addDays(-5));
calendar.ensureVisible(DateTime.addDays(5));
calendar.ensureVisible(DateTime.today());

This just gets "today" away from the screen sides more often.

Many thanks for the quick response and the fix.
-Damian


  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint