GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Engine: NPE instead of DatabaseMetadataException if the bucket is null during index creation · Issue #29 · ArcadeData/arcadedb

Engine: NPE instead of DatabaseMetadataException if the bucket is null during index creation #29

New issue
Copy link
New issue
Copy link
Closed
Closed
Engine: NPE instead of DatabaseMetadataException if the bucket is null during index creation#29
Copy link
Assignees
lvca

Description

@giastfader
giastfader
opened on Sep 3, 2021
Issue body actions

ArcadeDB Version: 21.9.1-SNAPSHOT

JDK Version: N/A

OS: N/A

Expected behavior

DatabaseMetadataException should be raised

Actual behavior

NPE is raised, hiding the real exception and related error message

Steps to reproduce

I have no use case yet, but it's clear what happens looking at the code

arcadedb/engine/src/main/java/com/arcadedb/schema/EmbeddedSchema.java

Line 569 in bb85560

if (bucket == null)

    if (bucket == null)
      throw new DatabaseMetadataException(
          "Cannot create index on type '" + typeName + "' because the specified bucket '" + bucket.getName() + "' is not part of the type");

@lvca what the real message should be? Because if bucket is null something here is going very weird.

WDYT?

Reacted by Luca Garulli

Activity

  1. lvca commented on Sep 3, 2021

    @lvca
    lvca
    on Sep 3, 2021
    Member
    More actions

    If bucket == null means the caller didn't provide a valid bucket, so the exception still makes sense, but I understand the responsibility should be on the caller. And the exception is accessing the bucket, so doesn't make much sense... Fixing it.

  2. lvca
    self-assigned this
    on Sep 3, 2021
  3. lvca
    added a commit that references this issue on Sep 3, 2021

    Fixed exception in case the bucket is null at index creation

    4462259
  4. lvca
    closed this as completedon Sep 3, 2021
  5. mergify
    added a commit that references this issue on Feb 8, 2026

    chore(deps-dev): bump cucumber.version from 7.22.1 to 7.34.2 [skip ci]

    107ca70
  6. tae898
    added 2 commits that reference this issue on Jun 28, 2026

    Fixed exception in case the bucket is null at index creation

    95802f8

    chore(deps-dev): bump cucumber.version from 7.22.1 to 7.34.2 [skip ci]

    c111b87
  7. mergify
    added a commit that references this issue on Aug 18, 2026

    chore(deps): bump the go-modules group across 1 directory with 3 upda…

    4e0e573
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @lvca
    lvca

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.