Menu

#61 Exception in UpdateEngine

SDK 2.1
open
nobody
None
1
2014-08-22
2014-06-18
John Barnes
No

The attached screenshot shows an exception seen the first time UpdateEngine() processes an input value in a composition based on two FORTRAN components.

Fixed by changing line 933 of Persistence.cs so that it returns a default TimeSet object when the xml has no attributes:

                return new CoreStandard2.TimeSet();
1 Attachments

Related

Bugs: #61

Discussion

  • Anonymous

    Anonymous - 2014-08-01

    Are we sure a default is the right thing? I can't actually see an exception in the screenshot but it may be that a missing TimeSet (ie the xml has no attributes when one is required) is actually a genuine exception and one should be thrown?

     
  • John Barnes

    John Barnes - 2014-08-04

    The exception is that timeInput.TimeSet is null.

    I think the context is that the xml has a TimeSet, but the TimeSet has no attributes, so a default TimeSet should be returned?

     
    • Anonymous

      Anonymous - 2014-08-04

      Yes, seems reasonable.

      From: John Barnes [mailto:johnbarnes4@users.sf.net]
      Sent: Monday, August 04, 2014 12:09 PM
      To: [fluidearth:bugs]
      Subject: [fluidearth:bugs] #61 Exception in UpdateEngine

      The exception is that timeInput.TimeSet is null.

      I think the context is that the xml has a TimeSet, but the TimeSet has no attributes, so a default TimeSet should be returned?


      [bugs:#61]http://sourceforge.net/p/fluidearth/bugs/61 Exception in UpdateEngine

      Status: open
      Group: SDK 2.1
      Created: Wed Jun 18, 2014 01:23 PM UTC by John Barnes
      Last Updated: Fri Aug 01, 2014 10:26 AM UTC
      Owner: nobody

      The attached screenshot shows an exception seen the first time UpdateEngine() processes an input value in a composition based on two FORTRAN components.

      Fixed by changing line 933 of Persistence.cs so that it returns a default TimeSet object when the xml has no attributes:

                  return new CoreStandard2.TimeSet();
      

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/fluidearth/bugs/61/https://sourceforge.net/p/fluidearth/bugs/61

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/https://sourceforge.net/auth/subscriptions

      This message has been scanned for viruses by MailControlhttp://www.mailcontrol.com/, a service from BlackSpider Technology

      Click herehttps://www.mailcontrol.com/sr/58VDyVPJ07HGX2PQPOmvUtVTDJsKpCsgzxa6WD9TMWBTEraswKO8I233Gz+!hXMmalPjxinsAkD1VsBVsOva5A== to report this email as spam.


      HR Wallingford and its subsidiaries uses faxes and emails for confidential and legally privileged business communications. They do not of themselves create legal commitments. Disclosure to parties other than addressees requires our specific consent. We are not liable for unauthorised disclosures nor reliance upon them.
      If you have received this message in error please advise us immediately and destroy all copies of it.

      HR Wallingford Limited
      Howbery Park, Wallingford, Oxfordshire, OX10 8BA, United Kingdom
      Registered in England No. 02562099


       

      Related

      Bugs: #61

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB