Ticket #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
Note: See
TracTickets for help on using
tickets.

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.