Announcement

Collapse
No announcement yet.

Assign null value in channelmap.put

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Assign null value in channelmap.put

    Hi all,

    I'm trying to assign a null value to a channelMap.put variables but using any method Mirth returns nullpointer exception. Any hints about?.

    I'm using code like this:

    channelMap.put('patid',null)

    or this too:

    var joker = null;
    channelMap.put('patid',joker)

    In both cases the exception is returned!.

    Awaiting your help!

    Ricard Bernat

  • #2
    RicBer,

    Did you found an solution to this?
    and is this possible?
    Stefan

    Mirth Certified|Epic Bridges Certified|Cloverleaf Level 2 Certified

    Comment


    • #3
      The underlying Java implementation of the channelMap is a "ConcurrentHashMap" which does not allow null's to be used as keys or values.
      Mitch Dempsey
      Software Engineer
      Mirth Corporation

      Comment


      • #4
        Thanks Mitchd,

        Does this mean that I have to use javascript in the databasewriter in order to write nulls into the database?
        Stefan

        Mirth Certified|Epic Bridges Certified|Cloverleaf Level 2 Certified

        Comment


        • #5
          Yes, you would have to script something in order write nulls to the database, since you cannot store them in any of the "maps"
          Mitch Dempsey
          Software Engineer
          Mirth Corporation

          Comment

          Working...
          X