Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-3124

Could Not Update Object When One Unique Key is NULL

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: BSON
    • Labels:
      None

      Could Not Update Object When One Unique Key is NULL.

      When i am integrating MongoDB with my java Aplication and MAP of java support NULL as unique key then why i am unable to save my Object.

       

      NOTE: Null key can be a business senario for some organisation

      To collect leftover data.

       

      Try to run below main program in java

      public static void main(String[] args)
      {
             Map<String, String> strMap= new HashMap<>();
              strMap.put(null,"Hello World");
              System.out.print(strMap);
      }
      

         

            Assignee:
            Unassigned Unassigned
            Reporter:
            ritesh.singh Ritesh Kumar Singh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: