Opened 5 years ago

Closed 5 years ago

#274 closed defect (fixed)

no document open => run any kind of Padre::Task::PPI::* => die()

Reported by: tsee Owned by: tsee
Priority: minor Milestone:
Component: editor Version: trunk
Keywords: Cc:

Description

Right now, when no document is open and any kind of Padre::Task::PPI is executed, there is a (non-fatal because caught) exception. While the non-existance of the document should be caught by whoever creates the Task object, it should still check by itself whether there is a "current" document.

Change History (1)

comment:1 Changed 5 years ago by tsee

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in trunk:

If you create a new Padre::Task::PPI, new() will return the empty list if there is no explicit text parameter and there is no current document to fetch it from either.

Note: See TracTickets for help on using tickets.