Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-1332

Possible Null pointer under Oracle in updateSchema

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.1 M2
    • 1.1 M1
    • Storage
    • None

    Description

      Index: C:/dev/java/xwiki-dev/xwiki/core/src/main/java/com/xpn/xwiki/store/XWikiHibernateBaseStore.java
      ===================================================================
      — C:/dev/java/xwiki-dev/xwiki/core/src/main/java/com/xpn/xwiki/store/XWikiHibernateBaseStore.java (revision 3555)
      +++ C:/dev/java/xwiki-dev/xwiki/core/src/main/java/com/xpn/xwiki/store/XWikiHibernateBaseStore.java (working copy)
      @@ -258,15 +258,15 @@
      "delete from xwikilongs where xwl_name like 'editbox_%'"
      };

      • int nb = (schemaSQL==null) ? 0 : schemaSQL.length;
      • nb += addSQL.length;
        + int inb = (schemaSQL==null) ? 0 : schemaSQL.length;
        + int nb = inb + addSQL.length;
        String[] sql = new String[nb];
        if (schemaSQL!=null) { - for (int i=0;i<schemaSQL.length;i++) + for (int i=0;i<inb;i++) sql[i] = schemaSQL[i]; }

        for (int i=0;i<addSQL.length;i++)

      • sql[i + schemaSQL.length] = addSQL[i];
        + sql[i + inb] = addSQL[i];

      updateSchema(sql, context);
      } finally {

      Attachments

        Activity

          People

            ludovic Ludovic Dubost
            ludovic Ludovic Dubost
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: