Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-36

Fix for NullPointerException when no username/password specified

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.0.0.Alpha6
    • Component/s: None
    • Labels:
      None

      Description

      In my main method, I use the following line to construct my datasource:
      Datasource ds = new Datasource("MyDatabase").connectionURL("jdbc:sqlserver://hostname;databaseName=MyDatabase;integratedSecurity=true;").driver("sqlserver");

      • I don't need a username and password because integratedSecurity=true, so I don't specify it.
      • Not specifying it throws a NullPointerException when that XML is generated
      • Things work fine if I let it write blank tags like <username></username><password></password>

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                amannm Amann Malik (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: